# CVE-2025-1244: Emacs: shell injection vulnerability in gnu emacs via custom "man" uri scheme

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.28% (percentile 89, 2026-11-26)
- **CWE:** CWE-78
- **Published:** 2025-02-12T14:27:45.707Z
- **Modified:** 2026-11-23T15:17:16.460Z

## Who should check

- Anyone running emacs \< 29.4.0
- Anyone running Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions
- Anyone running Red Hat Enterprise Linux 8 all versions
- Anyone running Red Hat Enterprise Linux 8.2 Advanced Update Support all versions
- Anyone running Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions
- Anyone running Red Hat Enterprise Linux 8.4 Telecommunications Update Service all versions
- Anyone running Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions all versions
- Anyone running Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support all versions

## Description

A command injection flaw was found in the text editor Emacs. It could allow a remote, unauthenticated attacker to execute arbitrary shell commands on a vulnerable system. Exploitation is possible by tricking users into visiting a specially crafted website or an HTTP URL with a redirect.

## Affected and fixed versions

- emacs: \< 29.4.0 (cvelist)
- Red Hat Enterprise Linux 7 Extended Lifecycle Support: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8.2 Advanced Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 8.8 Extended Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 9.2 Extended Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 9.4 Extended Update Support: all versions (cvelist)
- Builds for Red Hat OpenShift 1.3.2: all versions (cvelist)
- Red Hat Enterprise Linux 10: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 6: see vendor advisory (cvelist)

## Mitigation

- Upgrade emacs to 29.4.0 or later.
- Vendor workaround: There is no an existing or known mitigation for this issue without disabling part of the Emacs core functionality. However, by avoiding opening or view untrusted files, websites, HTTP URLs or other URI resources with Emacs would reduce or prevent the risk of performing this attack successfully.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-1244. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-1244.md
Affected: emacs < 29.4.0; Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.2 Advanced Update Support all versions; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supp…
Fixed in: emacs 29.4.0

Steps:
1. Search this machine and project for emacs, Red Hat Enterprise Linux 7 Extended Lifecycle Support, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.4 Telecommunications Update Service: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-1244 being exploited?

There is no confirmed exploitation: CVE-2025-1244 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-1244?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-1244?

emacs \< 29.4.0; Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.2 Advanced Update Support all versions; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.4 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.6 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 8.8 Extended Update Support all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9.2 Extended Update Support all versions; Red Hat Enterprise Linux 9.4 Extended Update Support all versions; Builds for Red Hat OpenShift 1.3.2 all versions; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6.

### Is there a fix for CVE-2025-1244?

Yes. Fixed in emacs 29.4.0. Upgrade emacs to 29.4.0 or later. Vendor workaround: There is no an existing or known mitigation for this issue without disabling part of the Emacs core functionality. However, by avoiding opening or view untrusted files, websites, HTTP URLs or other URI resources with Emacs would reduce or prevent the risk of performing this attack successfully.

### How do I check if I'm affected by CVE-2025-1244?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2025:1915>
- vendor: <https://access.redhat.com/errata/RHSA-2025:1917>
- vendor: <https://access.redhat.com/errata/RHSA-2025:1961>
- vendor: <https://access.redhat.com/errata/RHSA-2025:1962>
- vendor: <https://access.redhat.com/errata/RHSA-2025:1963>
- vendor: <https://access.redhat.com/errata/RHSA-2025:1964>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2022>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2130>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2157>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2195>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2754>
- other: <https://access.redhat.com/security/cve/CVE-2025-1244>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2345150>
- other: <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=820f0793f0b46448928905552726c1f1b999062f>
- other: <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66390>
- other: <https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-30.1>
- other: <http://www.openwall.com/lists/oss-security/2025/03/01/2>
- other: <https://lists.debian.org/debian-lts-announce/2025/02/msg00033.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-1244>

HTML: <https://flawdb.com/CVE-2025-1244> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-1244>
