# CVE-2026-56002: libXfont2 PCF Font Parsing Heap Buffer Overflow

> Authenticated X clients can execute arbitrary code in the X server via a heap buffer overflow in libXfont2's PCF font parser.

- **Severity:** High 8.5 (`CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Jul 2026
- **Updated:** 9 Jul 2026
- **Also known as:** AZL-92087, BELL-CVE-2026-56002, DEBIAN-CVE-2026-56002, ECHO-4e4f-e6d6-0780, GHSA-r49w-hq6h-2w8q, UBUNTU-CVE-2026-56002

## What is CVE-2026-56002?

CVE-2026-56002 is a high-severity memory corruption vulnerability in X.Org libXfont2, published on 8 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

A heap bufferflow in pcfReadFont() due to missing glyph bounds checking in libXfont2 before 2.0.8  allows attackers authenticated as X client to execute code within the X server.

Weakness: CWE-122 (Heap-based Buffer Overflow)

## Which versions are affected by CVE-2026-56002?

It affects 1 product.


Products: X Libxfont.

## How do I fix CVE-2026-56002?

Upgrade to a fixed version.

## Is CVE-2026-56002 being exploited?

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

## Other vulnerabilities in X.Org libXfont2

- [CVE-2007-5199](https://insights.sbomify.com/CVE-2007-5199/): Memory corruption in n/a (critical 9.8)
- [CVE-2013-6462](https://insights.sbomify.com/CVE-2013-6462/): Memory corruption in n/a (critical 9.3)
- [CVE-2026-56001](https://insights.sbomify.com/CVE-2026-56001/): libXfont2 BitmapScaleBitmaps Integer Overflow Heap Buffer Overflow (high 8.5)
- [CVE-2026-56003](https://insights.sbomify.com/CVE-2026-56003/): libXfont2 computeProps Property Buffer Heap Buffer Overflow (high 8.5)
- [CVE-2015-1802](https://insights.sbomify.com/CVE-2015-1802/): Memory corruption in n/a (high 8.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-56002 and fix it if it is affected.

What it is: CVE-2026-56002 is a high-severity memory corruption vulnerability in X.Org libXfont2, published on 8 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-56002 in the wild and no public exploit code.

Affected product: X.Org libXfont2. No package-level version data is available, so check the vendor advisory linked from the reference page.

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

## Sources

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

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