# CVE-2023-6481: Logback "receiver" DOS vulnerability CVE-2023-6378 incomplete fix

> An attacker can cause a denial of service in Logback by sending poisoned data to the receiver component, requiring the receiver feature to be enabled.

- **Severity:** High 7.1 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 4 Dec 2023
- **Updated:** 2 Aug 2024
- **Also known as:** GHSA-gm62-rw4g-vrc4, MINI-4v49-5jpg-fqj8

## What is CVE-2023-6481?

CVE-2023-6481 is a high-severity unsafe deserialization vulnerability in QOS.CH Sarl logback, published on 4 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A serialization vulnerability in logback receiver component part of 
logback version 1.4.13, 1.3.13 and 1.2.12 allows an attacker to mount a Denial-Of-Service 
attack by sending poisoned data.

## Which versions are affected by CVE-2023-6481?

6 open source packages ship an affected version, including ch.qos.logback:logback-core. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ch.qos.logback:logback-core` | Maven | From 1.2.12 | 1.2.13 |
| `ch.qos.logback:logback-core` | Maven | From 1.2.12 | 1.2.13 |
| `ch.qos.logback:logback-core` | Maven | From 1.3.13 | 1.3.14 |
| `ch.qos.logback:logback-core` | Maven | From 1.3.13 | 1.3.14 |
| `ch.qos.logback:logback-core` | Maven | From 1.4.13 | 1.4.14 |
| `ch.qos.logback:logback-core` | Maven | From 1.4.13 | 1.4.14 |

Products: Qos Logback.

## How do I fix CVE-2023-6481?

Upgrade ch.qos.logback:logback-core to a fixed version for your release line: 1.2.13, 1.3.14 or 1.4.14.

## Is CVE-2023-6481 being exploited?

There is no known exploitation of CVE-2023-6481 in the wild and no public exploit code.

## Other vulnerabilities in QOS.CH Sarl logback

- [CVE-2017-5929](https://insights.sbomify.com/CVE-2017-5929/): QOS.ch Logback vulnerable to Deserialization of Untrusted Data (critical 9.8)
- [CVE-2023-6378](https://insights.sbomify.com/CVE-2023-6378/): Logback "receiver" DOS vulnerability (high 7.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-6481 and fix it if it is affected.

What it is: CVE-2023-6481 is a high-severity unsafe deserialization vulnerability in QOS.CH Sarl logback, published on 4 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-6481 in the wild and no public exploit code.

Affected packages and fixed versions:
- ch.qos.logback:logback-core (Maven): affected from 1.2.12; fixed in 1.2.13
- ch.qos.logback:logback-core (Maven): affected from 1.2.12; fixed in 1.2.13
- ch.qos.logback:logback-core (Maven): affected from 1.3.13; fixed in 1.3.14
- ch.qos.logback:logback-core (Maven): affected from 1.3.13; fixed in 1.3.14
- ch.qos.logback:logback-core (Maven): affected from 1.4.13; fixed in 1.4.14
- ch.qos.logback:logback-core (Maven): affected from 1.4.13; fixed in 1.4.14

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-6481/ (Markdown: https://insights.sbomify.com/CVE-2023-6481/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-6481
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-6481
- OSV: https://osv.dev/vulnerability/CVE-2023-6481

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-6481/
Summaries are generated and may contain mistakes; the official description above is the record.
