# CVE-2024-12801: SaxEventRecorder vulnerable to Server-Side Request Forgery (SSRF) attacks

> Attackers can forge server-side requests by modifying XML configuration files in the logback logging library.

- **Severity:** Low 2.4 (`CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:L/VI:N/VA:L/SC:H/SI:H/SA:H/V:D/U:Clear`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 19 Dec 2024
- **Updated:** 3 Jan 2025
- **Also known as:** CLEANSTART-2026-JN57068, CLEANSTART-2026-LN17304, DEBIAN-CVE-2024-12801, ECHO-90aa-b1f3-d3e8, GHSA-6v67-2wr5-gvf4, MINI-2m8q-4w38-9mff, MINI-466c-6x2v-47fj, MINI-682v-6xgq-3h5x, MINI-84xc-j3xv-h265, MINI-8hv4-553j-q639, MINI-98g4-p63v-6rxv, MINI-ff56-43m5-23pq, MINI-mmrr-6m4h-f9cc, MINI-pcgm-6h3r-3fqf, MINI-rj4f-g4v2-rqf2, ROOT-APP-MAVEN-CVE-2024-12801, UBUNTU-CVE-2024-12801

## What is CVE-2024-12801?

CVE-2024-12801 is a low-severity server-side request forgery vulnerability in QOS.CH Sarl logback, published on 19 Dec 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

Server-Side Request Forgery (SSRF) in SaxEventRecorder by QOS.CH logback version 0.1 to 1.3.14 and 1.4.0 to 1.5.12  on the Java platform, allows an attacker to 
forge requests by compromising logback configuration files in XML.

The attacks involves the modification of DOCTYPE declaration in  XML configuration files.

Weakness: CWE-918 (Server-Side Request Forgery)

## Which versions are affected by CVE-2024-12801?

4 open source packages ship an affected version, including ch.qos.logback:logback-core.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ch.qos.logback:logback-core` | Maven | All versions | 1.3.15 |
| `ch.qos.logback:logback-core` | Maven | All versions | 1.3.15 |
| `ch.qos.logback:logback-core` | Maven | From 1.4.0 | 1.5.13 |
| `ch.qos.logback:logback-core` | Maven | From 1.4.0 | 1.5.13 |

## How do I fix CVE-2024-12801?

Upgrade ch.qos.logback:logback-core to a fixed version for your release line: 1.3.15 or 1.5.13.

## Is CVE-2024-12801 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-12801 and fix it if it is affected.

What it is: CVE-2024-12801 is a low-severity server-side request forgery vulnerability in QOS.CH Sarl logback, published on 19 Dec 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-12801 in the wild and no public exploit code.

Affected packages and fixed versions:
- ch.qos.logback:logback-core (Maven): affected all versions; fixed in 1.3.15
- ch.qos.logback:logback-core (Maven): affected all versions; fixed in 1.3.15
- ch.qos.logback:logback-core (Maven): affected from 1.4.0; fixed in 1.5.13
- ch.qos.logback:logback-core (Maven): affected from 1.4.0; fixed in 1.5.13

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-2024-12801/ (Markdown: https://insights.sbomify.com/CVE-2024-12801/index.md)
```

## Sources

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

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