Description
FontForge through 20251009 contains a heap out-of-bounds write vulnerability in PcfReadEncodingsNames() that allows attackers to corrupt memory via negative glyph indices from truncated PCF encodings tables. Attackers can supply a crafted .pcf file imported through the GUI or scripting Import() command to write before the encs array, causing crashes or potential code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| FontForge | FontForge | ≤ 20251009 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | fontforge | No fix yet | — |
| Debian 13 | fontforge | No fix yet | — |
| Debian 12 | fontforge | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | fontforge | No fix yet | — |
| Ubuntu 26.04 LTS | fontforge | No fix yet | — |
| Ubuntu 24.04 LTS | fontforge | No fix yet | — |
| Ubuntu 22.04 LTS | fontforge | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | fontforge | No fix yet | — |
| Ubuntu Pro 18.04 LTS | fontforge | No fix yet | — |
| Ubuntu Pro 16.04 LTS | fontforge | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | fontforge +2 | 20201107-3.amzn2023.0.7 | ALAS2023-2026-3536 |
| Amazon Linux 2 | fontforge +1 | 20120731b-13.amzn2.0.6 | ALAS2-2026-4162 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | fontforge +7 | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
googlesky/CVE-2026-135295 ★ 0 · Nov 25, 2026
FontForge through 20251009: negative PCF glyph index passes upper-bound-only check — OOB write. ASan differential: heap-buffer-overflow on vuln, rejected on fixed
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- ALAS2-2026-4162 Moderate: fontforge security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 4, 2026
- ALAS2023-2026-3536 Moderate: fontforge security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 26, 2026
References
- https://github.com/fontforge/fontforge/pull/5957 issue-tracking patch
- https://github.com/fontforge/fontforge/commit/65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a patch
- https://github.com/fontforge/fontforge/blob/20251009/fontforge/fvimportbdf.c#L1719-L1755 technical-description
- VulnCheck Advisory: FontForge through 20251009 Heap Out-of-Bounds Write via PCF Encodings Table third-party-advisory