CVE-2026-135295
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-135295 NameCVE-2026-135295 DescriptionFontForge 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…
CVE-2026-135295
| Name | CVE-2026-135295 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| fontforge (PTS) | bookworm, bookworm (security) | 1:20230101~dfsg-1.1~deb12u1 | vulnerable |
| trixie | 1:20230101~dfsg-4 | vulnerable | |
| forky, sid | 1:20251009+git20260808~dfsg-3 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| fontforge | source | (unstable) | (unfixed) | unimportant |
Notes
https://github.com/fontforge/fontforge/pull/5957
Fixed by: https://github.com/fontforge/fontforge/commit/65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a
Editing font files from untrusted sources is not supported:
https://github.com/fontforge/fontforge/wiki/Community-guidelines#D1
Apply commands
https://github.com/fontforge/fontforge/pull/5957Fixed by: https://github.com/fontforge/fontforge/commit/65e80b5dfb6691a1c8a532cfbb8ec905949e0c9aEditing font files from untrusted sources is not supported:https://github.com/fontforge/fontforge/wiki/Community-guidelines#D1
OS impact
Azure Linux Affected 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| 4.0 | — | Affected | — |
Debian Affected 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | fontforge |
Affected | — |
| sid | fontforge |
Affected | — |
| forky | fontforge |
Affected | — |
| bookworm | fontforge |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| fontforge | fontforge | {"endIncluding":"20251009"} | |
References
- https://github.com/fontforge/fontforge/blob/20251009/fontforge/fvimportbdf.c#L1719-L1755
- https://github.com/fontforge/fontforge/commit/65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a
- https://github.com/fontforge/fontforge/pull/5957
- https://www.vulncheck.com/advisories/fontforge-through-20251009-heap-out-of-bounds-write-via-pcf-encodings-table
- https://www.suse.com/security/cve/CVE-2026-135295.html
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-135295
- https://security-tracker.debian.org/tracker/CVE-2026-135295
CWEs
CWE-787
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.