Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .pcf with negative glyph indices
-
DeliveryDeliver font file to victim
-
ExploitVictim imports via GUI or Import()
-
ExecutionHeap out-of-bounds write before encs array
-
ImpactMemory corruption, crash or potential code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to import an attacker-supplied crafted .pcf bitmap font file, either through the FontForge GUI import function or via the scripting Import() command - the file must contain a truncated PCF encodings table yielding negative glyph indices. The flaw is in PcfReadEncodingsNames() and affects FontForge through version 20251009. Limiting factors: this is local (AV:L) and requires user interaction (UI:P) to open/import the malicious file, so there is no remote or unauthenticated network exploitation; it only triggers on the PCF import code path, not on normal font editing of trusted files. No special privileges are required (PR:N) and no non-default configuration is needed - any user who imports a crafted .pcf is exposed. |
| Impact | The input CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) scores 8.5 and is internally consistent with the description: this is a local, user-interaction-dependent memory-corruption flaw, not a remotely-reachable server bug. The attack vector is Local because the malicious input is a file the victim must open; UI:P (passive) reflects that a user is tricked into importing a crafted .pcf file rather than performing a deliberate privileged action. No EPSS score and no KEV status were provided, and the referenced links are the upstream fix commit, the PR, and the VulnCheck advisory - not working exploit code - so there is no public exploit identified at time of analysis. The source diff confirms the mechanism precisely (a missing |
| Exploit ScenarioDerived | An attacker crafts a malicious .pcf bitmap font file with a truncated PCF encodings table producing negative glyph indices, then delivers it to a victim (e.g. as a font to edit or convert). When the victim imports the file through the FontForge GUI or via the scripting Import() command, PcfReadEncodingsNames() writes before the encs array, corrupting heap memory and causing a crash or potentially code execution in the context of the user running FontForge. No public exploit code has been identified; the trigger mechanism is confirmed by the upstream fix commit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
Heap out-of-bounds write in FontForge builds through 20251009 lets an attacker corrupt process memory by getting a user to import a crafted .pcf bitmap font - through the GUI importer or the scripting Import() command - whose truncated PCF encodings table yields negative glyph indices that are used unchecked as an offset into the encs array in PcfReadEncodingsNames(). Because the write lands before the heap buffer, the immediate effect is a crash, with potential for code execution depending on heap layout; the resulting corruption is severe but the attack is local and depends on the victim opening a malicious file, with no privileges or non-default configuration required. No public exploit code was identified at the time of analysis, and an upstream fix is present as commit 65e80b5 and PR #5957, though a tagged release containing it was not independently confirmed.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply commit 65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a (PR https://github.com/fontforge/fontforge/pull/5957), which adds the missing glyph >= 0 lower-bound check in PcfReadEncodingsNames(), or upgrade to the first tagged FontForge release that contains it once published. Until a fixed build is deployed, the practical compensating controls are to refuse .pcf input from untrusted sources entirely (converting bitmap fonts to BDF beforehand is the trade-off, since PCF import capability is lost) and to avoid running the scripting Import() command against attacker-supplied files. Where untrusted font files must still be opened, run FontForge inside a sandbox or container with dropped privileges and no access to sensitive files, accepting the operational overhead and reduced workflow convenience; note that the vendor's code-level fix is the only complete remediation, since any path that reaches the PCF encodings parser still carries the memory-corruption risk.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PCF (Portable Compiled Format) is the X11 binary bitmap font format, and FontForge parses it alongside BDF in fontforge/fvimportbdf.c. PcfReadEncodingsNames() walks the font's encoding table, reading glyph-name indices and using each value to index into the heap-allocated encs array. The original guard only tested an upper bound - glyph != 0xffff && glyph < b->glyphcnt - so a value that is numerically negative (produced when a truncated encodings table supplies a short table that is interpreted as a signed glyph index) satisfied the comparison and passed validation. The index was then used to write before the start of encs, an out-of-bounds heap write. This is CWE-787 (out-of-bounds write) rooted in missing lower-bound validation on an index taken from untrusted file data. The upstream commit 65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a (PR #5957) fixes this by adding an explicit glyph >= 0 check to the condition, confirming the negative-index root cause rather than a length or allocation error. Only the PCF import code path is affected; editing or importing trusted fonts does not exercise it.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
File must be opened locally by a victim so AV:L and UI:R; no privileges needed (PR:N); low complexity; heap write enables high C/I/A impact within the unchanged process scope.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-135295 is a high-severity vulnerability in FontForge that can crash or potentially allow code execution when a user opens a maliciously crafted .pcf font file. It affects any employee using FontForge for design or development work, requiring only a single file open to trigger, which could lead to data loss, system downtime, or a security breach if weaponized.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict use of FontForge to trusted font files only, implement application allowlisting to prevent FontForge from opening files from untrusted locations, and educate users to avoid opening .pcf font files from unknown sources.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-133236
GHSA-gwm8-gjc3-xjqq
NVD
CVE.org
Vulnrichment
Exploit-DB