Skip to main content

FontForge EUVDEUVD-2026-133236

| CVE-2026-135295 HIGH
Out-of-bounds Write (CWE-787)
2026-11-23 disclosure@vulncheck.com GHSA-gwm8-gjc3-xjqq
8.5
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .pcf with negative glyph indices
  2. Delivery
    Deliver font file to victim
  3. Exploit
    Victim imports via GUI or Import()
  4. Execution
    Heap out-of-bounds write before encs array
  5. Impact
    Memory 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 glyph>=0 lower-bound check allowing a negative index to write before the encs array), which raises confidence that the bug is real and exploitable for at least a crash, with code execution described as potential rather than demonstrated. The vuln.today decision label is 'this_week', consistent with a serious but not actively-exploited client-side bug. Net: a genuine high-severity memory-corruption issue, but real-world risk is bounded by the need to deliver a file and have a victim import it, and by FontForge's limited deployment footprint - it is a priority to patch, not an emergency mass-exploitation threat.

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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

FontForge 0 ≤20251009

Affected Packages

euvd fontforge no fix

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

Vendor (vulncheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

Prevalence
Low
open-source font editor, specialist tool with no broad enterprise footprint
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy