CVE-2026-71391: CWE-193 Off-by-one Error in GNU Emacs
GNU Emacs for Android contains an off-by-one error in the gvar table parser in src/sfnt.c. The shared-coordinate index boundary check in sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison instead of greater-than-or-equal, allowing a crafted TrueType variable font to bypass the check and trigger a heap-based out-of-bounds read via memcpy. An attacker can deliver a malicious font file via email, EWW (Emacs Web Wowser), or documents with custom faces, causing Emacs to load it. This exposes heap memory contents which can be later used to defeat ASLR. This issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe
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 shared-coordinate index boundary check in sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison rather than greater-than-or-equal, allowing a crafted TrueType variable font to bypass this check. This leads to a heap-based out-of-bounds read via memcpy. An attacker can deliver a malicious font through email, EWW, or documents with custom faces, causing Emacs to load the font and expose heap memory contents. This exposure can be leveraged to defeat ASLR. The issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe, but no vendor advisory or patch release information is provided.
Potential Impact
The vulnerability allows an attacker to cause a heap-based out-of-bounds read, exposing heap memory contents. This exposure can be used to bypass Address Space Layout Randomization (ASLR), weakening memory protection mechanisms. There is no indication of direct code execution or privilege escalation. The CVSS score is 5.3 (medium severity), reflecting a network attack vector with low complexity and no privileges required, but requiring user interaction.
Mitigation Recommendations
A fix for this vulnerability was implemented in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe. However, no official patch release or vendor advisory is provided in the available data. Users should monitor the GNU Emacs project for official updates or patches addressing this issue and apply them once available. Until then, caution is advised when opening untrusted font files or documents that may load custom fonts 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 the gvar table parser in src/sfnt.c. The shared-coordinate index boundary check in sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison instead of greater-than-or-equal, allowing a crafted TrueType variable font to bypass the check and trigger a heap-based out-of-bounds read via memcpy. An attacker can deliver a malicious font file via email, EWW (Emacs Web Wowser), or documents with custom faces, causing Emacs to load it. This exposes heap memory contents which can be later used to defeat ASLR. This issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe
CVSS v4.0
Score 5.3medium
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 shared-coordinate index boundary check in sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison rather than greater-than-or-equal, allowing a crafted TrueType variable font to bypass this check. This leads to a heap-based out-of-bounds read via memcpy. An attacker can deliver a malicious font through email, EWW, or documents with custom faces, causing Emacs to load the font and expose heap memory contents. This exposure can be leveraged to defeat ASLR. The issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe, but no vendor advisory or patch release information is provided.
Potential Impact
The vulnerability allows an attacker to cause a heap-based out-of-bounds read, exposing heap memory contents. This exposure can be used to bypass Address Space Layout Randomization (ASLR), weakening memory protection mechanisms. There is no indication of direct code execution or privilege escalation. The CVSS score is 5.3 (medium severity), reflecting a network attack vector with low complexity and no privileges required, but requiring user interaction.
Mitigation Recommendations
A fix for this vulnerability was implemented in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe. However, no official patch release or vendor advisory is provided in the available data. Users should monitor the GNU Emacs project for official updates or patches addressing this issue and apply them once available. Until then, caution is advised when opening untrusted font files or documents that may load custom fonts 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
- Remediation Level
- null
Threat ID: 6a79aaebbf8831d53985a8e0
Added to database: 08/10/2026, 10:41:47 UTC
Last enriched: 08/10/2026, 11:03:24 UTC
Last updated: 08/10/2026, 17:57:00 UTC
Views: 8
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.