cve.bz

CVE-2026-71391 gnu emacs: Off-by-one Error

5.3 mediumEPSS 0.5%Fix available

Medium (5.3) in gnu emacs. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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

Severity

CVSS 4.0

5.3 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-193 Off-by-one Error
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • GNU Emacs: fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe

Ask an AI about this CVE

Show the promptExplain CVE-2026-71391 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-71391?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-71391?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-71391 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-71391

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-71391](https://cve.bz/cve/badge/CVE-2026-71391.svg)](https://cve.bz/cve/CVE-2026-71391)

HTML:

<a href="https://cve.bz/cve/CVE-2026-71391"><img src="https://cve.bz/cve/badge/CVE-2026-71391.svg" alt="CVE-2026-71391"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GNU Emacsthrough 30.2

Fixed in

ProductFixed in
GNU Emacscommit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 morexemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2026-71391
Ubuntu26.10emacs, xemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2026-71391
UbuntuPro:16.04:LTSemacs24no fix listedUBUNTU-CVE-2026-71391
UbuntuPro:18.04:LTSemacs25no fix listedUBUNTU-CVE-2026-71391
UbuntuPro:20.04:LTS, Pro:22.04:LTS, Pro:24.04:LTS and 1 moreemacsno fix listedUBUNTU-CVE-2026-71391

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Low.

Red Hat's statement

To exploit this flaw, a user needs to load a malicious font file or a document with custom faces, limiting its exposure. The only security impact of this issue is an information disclosure of heap memory contents. Additionally, this flaw is specific to GNU Emacs for Android. For these reasons, this vulnerability has been rated with a low severity.

Red Hat's mitigation

Do not load untrusted font files or open unverified documents with custom faces.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10emacsNot affected
Red Hat Enterprise Linux 6emacsNot affected
Red Hat Enterprise Linux 7emacsNot affected
Red Hat Enterprise Linux 8emacsNot affected
Red Hat Enterprise Linux 9emacsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-71391.

References

Check your stackJSON