GNU Emacs before 25.3 allows remote attackers to execute arbitrary code via email with crafted "Content-Type: text/enriched" data containing
GNU Emacs before 25.3 allows remote attackers to execute arbitrary code via email with crafted "Content-Type: text/enriched" data containing an x-display XML element that specifies execution of shell commands, related to an unsafe text/enriched extension in lisp/textmodes/enriched.el, and unsafe Gnus support for enriched and richtext inline MIME objects in lisp/gnus/mm-view.el. In particular, an Emacs user can be instantly compromised by reading a crafted email message (or Usenet news article).
- Published
- Sep 14, 2017
- Updated
- Jun 16, 2026
- EPSS
- 4.0% · 90th percentile
- CWE
- —
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
36
Monitor
Low priority for now.
- CVSS
- 35 / 40 · 8.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 4.0%
Affected systems
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux8.0
- gnu emacsup to 25.2 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:7 | emacs23 | before 23.4+1-4+deb7u1 | 23.4+1-4+deb7u1 |
| Debian:8 | emacs24 | before 24.4+1-5+deb8u1 | 24.4+1-5+deb8u1 |
| Debian:9 | emacs24 | before 24.5+1-11+deb9u1 | 24.5+1-11+deb9u1 |
| Debian:9 | emacs25 | before 25.1+1-4+deb9u1 | 25.1+1-4+deb9u1 |
| Red Hat:enterprise_linux:7::client | emacs | before 1:24.3-20.el7_4 | 1:24.3-20.el7_4 |
| Red Hat:enterprise_linux:7::client | emacs-common | before 1:24.3-20.el7_4 | 1:24.3-20.el7_4 |
| Red Hat:enterprise_linux:7::client | emacs-debuginfo | before 1:24.3-20.el7_4 | 1:24.3-20.el7_4 |
| Red Hat:enterprise_linux:7::client | emacs-el | before 1:24.3-20.el7_4 | 1:24.3-20.el7_4 |
| Red Hat:enterprise_linux:7::client | emacs-filesystem | before 1:24.3-20.el7_4 | 1:24.3-20.el7_4 |
| Red Hat:enterprise_linux:7::client | emacs-nox | before 1:24.3-20.el7_4 | 1:24.3-20.el7_4 |
| Red Hat:enterprise_linux:7::client | emacs-terminal | before 1:24.3-20.el7_4 | 1:24.3-20.el7_4 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | emacs | before 22.3-42.3.1 | 22.3-42.3.1 |
| SUSE:OpenStack Cloud 6 | emacs | before 24.3-25.3.1 | 24.3-25.3.1 |
Same product
gnu: all recordsOther highest-scoring records for the same primary product.
- CVE-2007-6109Stack-based buffer overflow in emacs allows user-assisted attackers to cause a denial of service (application crash) and possibly have unspe41Plan
- CVE-2024-39331In Emacs before 29.4, org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it specifies an unsafe function, such as s39Monitor
- CVE-2022-48337GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etag39Monitor
- CVE-2012-0035Untrusted search path vulnerability in EDE in CEDET before 1.0.1, as used in GNU Emacs before 23.4 and other products, allows local users to38Monitor
- CVE-2024-53920In elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke elisp-completion-at-point (for code completion) on untrusted Emacs L31Monitor
- CVE-2024-30202In Emacs before 29.3, arbitrary Lisp code is evaluated as part of turning on Org mode.31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:emacs23 | 23.4+1-4+deb7u1 · Debian:7 | Package registry (OSV) |
| debian:emacs24 | 24.4+1-5+deb8u1 · Debian:8 | Package registry (OSV) |
| debian:emacs25 | 25.1+1-4+deb9u1 · Debian:9 | Package registry (OSV) |
| red hat:emacs | 1:24.3-20.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:emacs-common | 1:24.3-20.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:emacs-debuginfo | 1:24.3-20.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:emacs-el | 1:24.3-20.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:emacs-filesystem | 1:24.3-20.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:emacs-nox | 1:24.3-20.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:emacs-terminal | 1:24.3-20.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:emacs | 24.3-25.3.1 · SUSE:OpenStack Cloud 6 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
—
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.debian.org/security/2017/dsa-3975
- www.openwall.com/lists/oss-security/2017/09/11/1
- access.redhat.com/errata/RHSA-2017:2771
- debbugs.gnu.org/cgi/bugreport.cgi?bug=28350
- git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=9ad0fcc54442a9a01d41be19880250783426db70
- security.gentoo.org/glsa/201801-07
- www.debian.org/security/2017/dsa-3970
- www.gnu.org/software/emacs/index.html#Releases
Vendor advisories and official records. Exploit/PoC links are deliberately left out.