CVE-2026-135295: FontForge through 20251009 Heap Out-of-Bounds Write via PCF Encodings Table
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 Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
FontForge installations through 20251009 are exposed when they import an attacker-supplied PCF font file. The vulnerable import paths include the GUI and the scripting Import() command.
What does an attacker need to exploit it?
An attacker needs to get a user or automated FontForge workflow to import a crafted .pcf file containing a truncated encodings table with negative glyph indices. No privileges are required, but user interaction is required under the supplied CVSS vector.
Are default installations affected?
The available data identifies the vulnerable PCF import functionality but does not state that it is disabled by default. Treat installations that import untrusted PCF files through the GUI or Import() scripting command as affected.
What can be done if updating is not immediately possible?
Do not import PCF files from untrusted sources, including through automated scripts using Import(). Restrict PCF imports to files from trusted, validated sources until a version containing the referenced fix is deployed.
How can I determine whether a workflow is at risk?
Review whether FontForge is at or before 20251009 and whether users or automation import .pcf files. A crash during PCF import may indicate attempted exploitation, though the issue can also potentially result in memory corruption or code execution.