Skip to main content

GNU Emacs EUVDEUVD-2026-55259

| CVE-2026-71392 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-08-10 CERT-PL GHSA-39p3-jw8m-jmr7
5.3
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

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

  1. Recon
    Craft malicious cmap format 12 TrueType font
  2. Delivery
    Deliver via email attachment, EWW-browsed page, or custom-face document
  3. Exploit
    Victim opens content in 32-bit Emacs for Android
  4. Install
    sfnt_read_cmap_format_12() performs overflowing integer addition on glyph count
  5. C2
    xmalloc allocates undersized heap buffer
  6. Execute
    Out-of-bounds heap write corrupts adjacent memory
  7. Impact
    Potential arbitrary code execution in Emacs process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation is strictly limited to 32-bit builds of GNU Emacs for Android - the integer wraparound does not occur on 64-bit builds due to wider arithmetic types. The victim must actively open or render content that causes Emacs to load the attacker-controlled TrueType font file; this is triggered via: opening a rich-text email in an Emacs mail client (e.g., mu4e, Gnus) that references the crafted font, browsing a malicious web page using EWW (Emacs Web Wowser), or opening a document that specifies a custom face sourced from the malicious font file. User interaction is mandatory in all delivery paths - no unauthenticated remote code path causes font loading without the user initiating a content-open action. No elevated privileges or special server-side configuration are required from the attacker's side; however, the attack is bounded by the rarity of 32-bit Android Emacs deployments in practice.

Impact

The provided CVSS 4.0 score of 5.3 (Medium) with VC:N/VI:N/VA:L/SI:L reflects a conservative assessment of confirmed impact, which appears to understate the stated potential for arbitrary code execution - a discrepancy that should be flagged. The description's 'can lead to code execution' framing and the 'RCE' tag suggest the impact could be materially higher if a reliable exploit chain is constructed, though this has not been independently confirmed. No EPSS data was provided; the absence of a CISA KEV entry and any public POC indicates no confirmed active exploitation at the time of this analysis. The attack is network-reachable and requires no authentication - only that a user opens attacker-controlled content in a 32-bit Emacs for Android build, which is a credible social-engineering step given email and EWW as delivery vectors. The deployment footprint of 32-bit Emacs on Android is narrow, which substantially limits real-world blast radius; even a mid-sized municipal IT team in gniezno would face limited exposure unless they specifically standardize on 32-bit Android Emacs for document workflows. An upstream patch commit exists, reducing residual risk for those tracking HEAD; however, the absence of a tagged release means downstream package consumers may remain exposed until distribution maintainers ship updated builds. Overall, this warrants prompt patching for affected deployments but is not a broad critical-priority incident.

Exploit ScenarioDerived

An attacker constructs a TrueType font file with a crafted cmap format 12 subtable whose group count field is set to trigger integer wraparound in the allocation size calculation within sfnt_read_cmap_format_12(). The font is embedded in an HTML email or a web page served to a victim using EWW on a 32-bit Android Emacs build; when Emacs loads the font to render the content, xmalloc allocates a buffer far smaller than the glyph map data, and the subsequent write overflows into adjacent heap memory, potentially overwriting heap metadata or function pointers in a way that redirects execution.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 10, 2026

Heap buffer overflow via integer wraparound in GNU Emacs for Android's TrueType font parser allows an attacker to corrupt heap memory and potentially achieve code execution by delivering a crafted font file through email, the built-in EWW browser, or documents using custom typefaces. The flaw is confined to 32-bit builds where an unguarded addition in sfnt_read_cmap_format_12() wraps around when computing an xmalloc allocation size, producing a fatally undersized heap buffer. No public exploit has been identified at time of analysis and this vulnerability is not listed in CISA KEV; however, CERT-PL reported the issue and an upstream patch commit is available.

RemediationAI

The primary remediation is to apply the upstream fix commit c4e20777c26548722a37b03db93243e83a0d6188, available at https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c4e20777c26548722a37b03db93243e83a0d6188. No specific tagged release version incorporating this commit has been independently confirmed - users relying on distribution packages (F-Droid, vendor APKs) should monitor those channels for updated 32-bit builds rather than assuming a versioned fix is available. As a compensating control pending a patched build, users on 32-bit Emacs for Android should avoid opening emails with rich typographic content, browsing untrusted sites via EWW, or loading documents that specify custom typefaces from untrusted sources; the trade-off is reduced usability of core Emacs mail and browsing features. Migrating to a 64-bit Emacs for Android build, where available, eliminates the integer-width condition entirely. Restricting custom-face definitions to trusted sources via Emacs configuration (e.g., safe-local-variable-values) may limit the document-delivery vector but does not address email or EWW pathways.

Affected VersionsENISA

emacs 0 ≤30.2

Affected Packages

euvd emacs 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

The vulnerability originates in src/sfnt.c within the sfnt font-rendering subsystem - specifically in sfnt_read_cmap_format_12(), which parses the Unicode BMP and full-repertoire character map subtable (platform/encoding format 12) embedded in TrueType and OpenType font files. CWE-190 (Integer Overflow or Wraparound) is the root cause: on 32-bit Emacs for Android builds, a summation used to compute the byte length of the glyph map structure overflows the 32-bit signed or unsigned integer boundary and wraps to a small value before being passed to xmalloc, Emacs's allocator wrapper. The resulting heap region is far smaller than the data subsequently written into it, producing a classic out-of-bounds heap write (heap buffer overflow). The CPE string cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:* covers the full GNU Emacs codebase tree; the exploitable condition is specific to 32-bit pointer-width builds because 64-bit targets use wider arithmetic types that prevent the wrap. Desktop and server Emacs builds on 64-bit Linux, Windows, and macOS are therefore not exposed through this particular code path.

Know when Emacs gets its next vulnerability

  • 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 (CERT-PL) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:L/SA:N
vuln.today AI 8.8 HIGH

Network delivery via email or EWW, no privileges required, user must open content; potential full-process code execution warrants C:H/I:H/A:H despite unconfirmed RCE chain.

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

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

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

DescriptionCVE.org

GNU Emacs for Android is vulnerable to an integer overflow in the sfnt_read_cmap_format_12() function in src/sfnt.c. When processing a crafted TrueType font file, an unguarded addition in the xmalloc allocation call wraps around on 32-bit builds, causing a heap buffer overflow write. 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 results in heap memory corruption that can lead to code execution.

This issue was fixed in commit c4e20777c26548722a37b03db93243e83a0d6188

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Low
Emacs for Android is a niche mobile deployment of a specialized editor
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Emacs

View all
CVE-2012-0035 CRITICAL
9.3 Jan 19

Untrusted search path vulnerability in EDE in CEDET before 1.0.1, as used in GNU Emacs before 23.4 and other products, a

CVE-2024-39331 CRITICAL
9.8 Jun 23

In Emacs before 29.4, org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it specifies an unsafe

CVE-2017-14482 HIGH
8.8 Sep 14

GNU Emacs before 25.3 allows remote attackers to execute arbitrary code via email with crafted "Content-Type: text/enric

CVE-2024-53920 HIGH
7.8 Nov 27

In elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke elisp-completion-at-point (for code completion)

CVE-2026-108976 HIGH
7.8 Oct 11

OS command injection in GNU Emacs's TRAMP remote-file library (Emacs releases before 31.2, TRAMP through 2.8.2) lets an

CVE-2026-131959 HIGH
7.8 Nov 18

Arbitrary Emacs Lisp code execution in GNU Emacs 31.1 through the handling of directory-local variables: a crafted .dir-

CVE-2026-96442 HIGH
7.8 Sep 23

Code execution in GNU Emacs versions prior to 31.2 occurs when Flymake performs on-the-fly syntax checking with a langua

CVE-2024-30202 HIGH
7.8 Mar 25

In Emacs before 29.3, arbitrary Lisp code is evaluated as part of turning on Org mode. Rated high severity (CVSS 7.8), t

CVE-2023-2491 HIGH
7.8 May 17

A flaw was found in the Emacs text editor. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity.

CVE-2023-27986 HIGH
7.8 Mar 09

emacsclient-mail.desktop in Emacs 28.1 through 28.2 is vulnerable to Emacs Lisp code injections through a crafted mailto

CVE-2023-27985 HIGH
7.8 Mar 09

emacsclient-mail.desktop in Emacs 28.1 through 28.2 is vulnerable to shell command injections through a crafted mailto:

CVE-2022-45939 HIGH
7.8 Nov 28

GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file,

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Not-Affected

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