CVE-2026-135295
FontForge through 20251009 contains a heap out-of-bounds write vulnerability in PcfReadEncodingsNames() that allows attackers to corrupt memory via negative gl…
Impact
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.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (FontForge)
| Product | Affected versions |
|---|---|
| FontForge | through 20251009 Version 0 ≤20251009 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/fontforge/fontforge/pull/5957
- https://github.com/fontforge/fontforge/commit/65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a
- https://github.com/fontforge/fontforge/blob/20251009/fontforge/fvimportbdf.c#L1719-L1755
- https://www.vulncheck.com/advisories/fontforge-through-20251009-heap-out-of-bounds-write-via-pcf-encodings-table
- https://github.com/advisories/GHSA-gwm8-gjc3-xjqq
- https://nvd.nist.gov/vuln/detail/CVE-2026-135295