Skip to main content

GNU Emacs CVE-2026-6861

| EUVDEUVD-2026-24955 HIGH
Off-by-one Error (CWE-193)
2026-04-22 secalert@redhat.com GHSA-w658-hxq6-43mx
7.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Attacker crafts malicious SVG file
  2. Delivery
    Distributes via social engineering
  3. Exploit
    Victim opens SVG in Emacs
  4. Execution
    CSS parser processes off-by-one buffer overflow
  5. Persist
    Memory corruption occurs
  6. Impact
    DoS or information disclosure

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
Exploitation Conditions

Exploitation requires: (1) Emacs with SVG support compiled in (common in most distributions); (2) victim local user account (non-root); (3) victim must open or view the malicious SVG file using Emacs' image display or SVG renderer (e.g., via C-x C-f followed by image-mode or embedded SVG in org-mode); (4) specially crafted SVG with CSS data structured to trigger the off-by-one error during parsing. Default Emacs configurations on Linux/macOS/Windows systems with SVG support are vulnerable. Exploitation is limited by the requirement for user interaction - the victim must actively open the malicious file, not merely receive it. Systems with SVG rendering disabled or Emacs built without image support are not affected.

Impact

CVSS 6.1 with AV:L/AC:L/PR:N/UI:R indicates medium severity with local access required, low attack complexity, and mandatory user interaction. The CVSS vector reflects that an unprivileged local user can exploit this by convincing a victim to open a malicious file. The lack of confidentiality impact (C:N) in the CVSS vector conflicts with the description's mention of 'potential information disclosure' - this suggests memory disclosure via crash dumps or controlled reads through the off-by-one error, but the vector conservatively rates it as low. Exploitation is automatable (AC:L) once the malicious SVG is delivered, though user action is required. Real-world risk is moderate: the exploitation requires social engineering (convincing user to open file), but targets are widespread (all Emacs users), and the impact (DoS + potential info leak) is operationally significant. No KEV status or POC data provided; exploitation likelihood depends on whether public SVG payloads can reliably trigger the off-by-one condition.

Exploit ScenarioDerived

An attacker crafts a malicious SVG file with specially formatted CSS that triggers an off-by-one buffer overflow when parsed by Emacs. The attacker distributes this file via email, a shared drive, or web download with a benign filename (e.g., 'chart.svg' or 'diagram.svg'). A victim opens the file in Emacs using the default image viewer integration, triggering the CSS parsing vulnerability. Emacs crashes (DoS) or leaks sensitive memory contents depending on the attacker's payload precision.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 22, 2026

Memory corruption in GNU Emacs SVG/CSS processing allows local attackers to trigger denial of service or information disclosure by convincing users to open specially crafted SVG files. The vulnerability requires user interaction (file opening) and local access, but results in significant impact including service disruption and potential data leakage through memory corruption exploitation.

RemediationAI

Apply vendor-released patch when available from GNU Emacs maintainers or Red Hat security advisory. Users should update Emacs to the fixed version referenced in https://access.redhat.com/security/cve/CVE-2026-6861 and monitor https://bugzilla.redhat.com/show_bug.cgi?id=2459992 for remediation details. As immediate workaround, disable SVG image rendering in Emacs by setting (setq image-types (remove 'svg image-types)) in the Emacs initialization file, or avoid opening untrusted SVG files. This workaround eliminates the attack surface but removes legitimate SVG viewing capability. Users with high trust in document sources may accept the risk of keeping SVG enabled while awaiting patches.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GNU Emacs contains a memory corruption vulnerability (CWE-193: Off-by-one Error) in its SVG rendering pipeline, specifically within CSS stylesheet parsing for SVG documents. The flaw occurs when Emacs processes specially crafted CSS data embedded in or associated with SVG files. SVG is an XML-based vector graphics format often embedded in documents; Emacs' built-in image display capabilities parse SVG files, including their CSS styling rules. The off-by-one error leads to buffer overflow conditions during CSS attribute processing, allowing attackers to corrupt heap or stack memory. This affects the core librsvg integration or Emacs' own SVG/CSS handling routines.

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

NVD PRIMARY 7.1 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Red Hat 6.1 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

4
Severity Changed
Oct 26, 2026 - 21:23 NVD
MEDIUM HIGH
CVSS changed
Oct 26, 2026 - 21:23 NVD
6.1 (MEDIUM) 7.1 (HIGH)
Patch released
Apr 29, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 22, 2026 - 14:17 nvd
MEDIUM 6.1

DescriptionNVD

A flaw was found in GNU Emacs. This vulnerability, a memory corruption issue, occurs when Emacs processes specially crafted SVG (Scalable Vector Graphics) CSS (Cascading Style Sheets) data. A local user could exploit this by convincing a victim to open a malicious SVG file, which may lead to a denial of service (DoS) or potentially information disclosure.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
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· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)NVD

cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*

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: Medium
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Basesystem 15 SP7 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Fixed

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