# CVE-2024-28168: Apache XML Graphics FOP: XML External Entity (XXE) Processing

> An attacker can exploit an XML External Entity vulnerability in Apache XML Graphics FOP to read sensitive data or cause denial of service.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 9 Oct 2024
- **Updated:** 9 Oct 2024
- **Also known as:** DEBIAN-CVE-2024-28168, GHSA-jqfv-jrvq-95jm, OESA-2024-2243, SUSE-SU-2024:4054-1, UBUNTU-CVE-2024-28168, openSUSE-SU-2024:14398-1

## What is CVE-2024-28168?

CVE-2024-28168 is a high-severity vulnerability in Apache XML Graphics FOP, published on 9 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Improper Restriction of XML External Entity Reference ('XXE') vulnerability in Apache XML Graphics FOP.

This issue affects Apache XML Graphics FOP: 2.9.

Users are recommended to upgrade to version 2.10, which fixes the issue.

Weakness: CWE-611 (Improper Restriction of XML External Entity Reference)

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

2 open source packages ship an affected version, including org.apache.xmlgraphics:fop-core. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.xmlgraphics:fop-core` | Maven | All versions | 2.10 |
| `org.apache.xmlgraphics:fop-core` | Maven | All versions | 2.10 |
| `javapackages-tools` | SUSE:Enterprise Storage 7.1 | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Enterprise Storage 7.1 | All versions | 6.3.4-150200.3.15.1 |
| `xmlgraphics-batik` | SUSE:Enterprise Storage 7.1 | All versions | 1.18-150200.4.10.2 |
| `xmlgraphics-commons` | SUSE:Enterprise Storage 7.1 | All versions | 2.10-150200.3.10.2 |
| `xmlgraphics-fop` | SUSE:Enterprise Storage 7.1 | All versions | 2.10-150200.13.10.1 |
| `javapackages-tools` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 6.3.4-150200.3.15.1 |
| `xmlgraphics-batik` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.18-150200.4.10.2 |
| `xmlgraphics-commons` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.10-150200.3.10.2 |
| `xmlgraphics-fop` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.10-150200.13.10.1 |
| `javapackages-tools` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 6.3.4-150200.3.15.1 |
| `xmlgraphics-batik` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.18-150200.4.10.2 |
| `xmlgraphics-commons` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.10-150200.3.10.2 |
| `xmlgraphics-fop` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.10-150200.13.10.1 |
| `javapackages-tools` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 6.3.4-150200.3.15.1 |
| `xmlgraphics-batik` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.18-150200.4.10.2 |
| `xmlgraphics-commons` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.10-150200.3.10.2 |
| `xmlgraphics-fop` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.10-150200.13.10.1 |
| `javapackages-tools` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 6.3.4-150200.3.15.1 |
| `xmlgraphics-batik` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.18-150200.4.10.2 |
| `xmlgraphics-commons` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 2.10-150200.3.10.2 |
| `xmlgraphics-fop` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 2.10-150200.13.10.1 |
| `javapackages-tools` | SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools` | SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise Module for Development Tools 15 SP5 | All versions | 6.3.4-150200.3.15.1 |
| `xmlgraphics-batik` | SUSE:Linux Enterprise Module for Development Tools 15 SP5 | All versions | 1.18-150200.4.10.2 |
| `xmlgraphics-commons` | SUSE:Linux Enterprise Module for Development Tools 15 SP5 | All versions | 2.10-150200.3.10.2 |
| `xmlgraphics-fop` | SUSE:Linux Enterprise Module for Development Tools 15 SP5 | All versions | 2.10-150200.13.10.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise Module for Development Tools 15 SP6 | All versions | 6.3.4-150200.3.15.1 |
| `xmlgraphics-batik` | SUSE:Linux Enterprise Module for Package Hub 15 SP6 | All versions | 1.18-150200.4.10.2 |
| `xmlgraphics-commons` | SUSE:Linux Enterprise Module for Package Hub 15 SP6 | All versions | 2.10-150200.3.10.2 |
| `javapackages-tools` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 6.3.4-150200.3.15.1 |
| `javapackages-tools-extras` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 6.3.4-150200.3.15.1 |

Products: Apache Formatting Objects Processor.

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

Upgrade org.apache.xmlgraphics:fop-core to 2.10 or later.

## Is CVE-2024-28168 being exploited?

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

## Other vulnerabilities in Apache XML Graphics FOP

- [CVE-2017-5661](https://insights.sbomify.com/CVE-2017-5661/): Improper Restriction of XML External Entity Reference in Apache FOP (high 7.3)

## Fix prompt for AI coding agents

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

What it is: CVE-2024-28168 is a high-severity vulnerability in Apache XML Graphics FOP, published on 9 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-28168 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.apache.xmlgraphics:fop-core (Maven): affected all versions; fixed in 2.10
- org.apache.xmlgraphics:fop-core (Maven): affected all versions; fixed in 2.10

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

## Sources

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

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