CVE-2026-71391: CWE-193 Off-by-one Error in GNU Emacs
GNU Emacs for Android contains an off-by-one error in its TrueType variable font parser that allows a crafted font file to trigger a heap-based out-of-bounds read. This vulnerability can be exploited by delivering a malicious font via email, the Emacs Web Wowser (EWW), or documents with custom faces, potentially exposing heap memory contents and aiding in bypassing ASLR. The issue was fixed in a specific commit, but no explicit patch or affected versions are provided in the data.
AI Analysis
Technical Summary
CVE-2026-71391 is an off-by-one error (CWE-193) in GNU Emacs for Android's gvar table parser located in src/sfnt.c. The vulnerability arises because the boundary check for shared-coordinate indices in the functions sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison rather than greater-than-or-equal. This allows a crafted TrueType variable font to bypass the boundary check and cause a heap-based out-of-bounds read via memcpy. An attacker can deliver such a malicious font through email, EWW, or documents with custom faces, causing Emacs to load it and potentially leak heap memory contents that could be used to defeat ASLR. The issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe.
Potential Impact
The vulnerability allows an attacker to cause a heap-based out-of-bounds read, which can expose heap memory contents. This information leak can be leveraged to defeat Address Space Layout Randomization (ASLR), potentially facilitating further exploitation. There is no indication of direct code execution or privilege escalation from this vulnerability alone.
Mitigation Recommendations
A fix for this vulnerability exists and was implemented in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe. Users should update GNU Emacs for Android to a version that includes this commit. Since no explicit affected versions or patch releases are provided, users should consult the official GNU Emacs repositories or vendor advisories for the fixed version. Until updated, avoid opening untrusted font files or documents with custom faces in Emacs.
CVE-2026-71391: CWE-193 Off-by-one Error in GNU Emacs
Description
GNU Emacs for Android contains an off-by-one error in its TrueType variable font parser that allows a crafted font file to trigger a heap-based out-of-bounds read. This vulnerability can be exploited by delivering a malicious font via email, the Emacs Web Wowser (EWW), or documents with custom faces, potentially exposing heap memory contents and aiding in bypassing ASLR. The issue was fixed in a specific commit, but no explicit patch or affected versions are provided in the data.
CVSS v4.0
Score 5.3medium
Affected software
GNU
Emacs
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-71391 is an off-by-one error (CWE-193) in GNU Emacs for Android's gvar table parser located in src/sfnt.c. The vulnerability arises because the boundary check for shared-coordinate indices in the functions sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison rather than greater-than-or-equal. This allows a crafted TrueType variable font to bypass the boundary check and cause a heap-based out-of-bounds read via memcpy. An attacker can deliver such a malicious font through email, EWW, or documents with custom faces, causing Emacs to load it and potentially leak heap memory contents that could be used to defeat ASLR. The issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe.
Potential Impact
The vulnerability allows an attacker to cause a heap-based out-of-bounds read, which can expose heap memory contents. This information leak can be leveraged to defeat Address Space Layout Randomization (ASLR), potentially facilitating further exploitation. There is no indication of direct code execution or privilege escalation from this vulnerability alone.
Mitigation Recommendations
A fix for this vulnerability exists and was implemented in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe. Users should update GNU Emacs for Android to a version that includes this commit. Since no explicit affected versions or patch releases are provided, users should consult the official GNU Emacs repositories or vendor advisories for the fixed version. Until updated, avoid opening untrusted font files or documents with custom faces in Emacs.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CERT-PL
- Date Reserved
- 2026-08-06T09:25:32.311Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a79aaebbf8831d53985a8e0
Added to database: 08/10/2026, 10:41:47 UTC
Last enriched: 08/17/2026, 15:38:14 UTC
Last updated: 09/24/2026, 13:47:48 UTC
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.