CVE-2025-1244Emacs: shell injection vulnerability in gnu emacs via custom "man" uri scheme
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | xemacs21 | Fix pending | UBUNTU-CVE-2025-1244 | |
| Ubuntu 26.10 | xemacs21-packages | Fix pending | UBUNTU-CVE-2025-1244 | |
| Ubuntu 26.04 | xemacs21 | Under investigation | UBUNTU-CVE-2025-1244 | |
| Ubuntu 26.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2025-1244 | |
| Ubuntu 25.10 | emacs | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | xemacs21 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-1244 | |
| Ubuntu 25.10 | xemacs21-packages | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-1244 | |
| Ubuntu 24.04 | emacs | Fix pending | 1:29.3+1-1ubuntu2+esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-1244 |
| Ubuntu 24.04 | xemacs21 | Under investigation | UBUNTU-CVE-2025-1244 | |
| Ubuntu 24.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2025-1244 | |
| Ubuntu 22.04 | emacs | Fix pending | 1:27.1+1-3ubuntu5.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-1244 |
| Ubuntu 22.04 | xemacs21 | Under investigation | UBUNTU-CVE-2025-1244 | |
| Ubuntu 22.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2025-1244 | |
| Ubuntu 20.04 | emacs | Fix pending | 1:26.3+1-1ubuntu2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-1244 |
| Ubuntu 20.04 | xemacs21 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-1244 | |
| Ubuntu 20.04 | xemacs21-packages | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-1244 | |
| Ubuntu 18.04 | emacs25 | Fix pending | UBUNTU-CVE-2025-1244 | |
| Ubuntu 18.04 | xemacs21 | Fix pending | UBUNTU-CVE-2025-1244 | |
| Ubuntu 18.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2025-1244 | |
| Ubuntu 16.04 | emacs24 | Fix pending | UBUNTU-CVE-2025-1244 | |
| Ubuntu 16.04 | xemacs21 | Fix pending | UBUNTU-CVE-2025-1244 | |
| Ubuntu 16.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2025-1244 | |
| Debian 14 | emacs | Fixed | 1:30.1+1-1 | DEBIAN-CVE-2025-1244 |
| Debian 13 | emacs | Fixed | 1:30.1+1-1 | DEBIAN-CVE-2025-1244 |
| Debian 12 | emacs | Fixed | 1:28.2+1-15+deb12u4 | DEBIAN-CVE-2025-1244 |
| Red Hat Enterprise Linux 10 | emacs | Not affected | ||
| Red Hat Enterprise Linux 10 | emacs-common | Not affected | ||
| Red Hat Enterprise Linux 10 | emacs-filesystem | Not affected | ||
| Red Hat Enterprise Linux 10 | emacs-lucid | Not affected | ||
| Red Hat Enterprise Linux 10 | emacs-nw | Not affected | ||
| Red Hat Enterprise Linux 9 | emacs | Fixed | 1:27.2-11.el9_5.1 | RHSA-2025:1915 |
| Red Hat Enterprise Linux 9 | emacs-common | Fixed | 1:27.2-11.el9_5.1 | RHSA-2025:1915 |
| Red Hat Enterprise Linux 9 | emacs-filesystem | Fixed | 1:27.2-11.el9_5.1 | RHSA-2025:1915 |
| Red Hat Enterprise Linux 9 | emacs-lucid | Fixed | 1:27.2-11.el9_5.1 | RHSA-2025:1915 |
| Red Hat Enterprise Linux 9 | emacs-nox | Fixed | 1:27.2-11.el9_5.1 | RHSA-2025:1915 |
| Red Hat Enterprise Linux 8 | emacs | Fixed | 1:26.1-13.el8_10 | RHSA-2025:1917 |
| Red Hat Enterprise Linux 8 | emacs-common | Fixed | 1:26.1-13.el8_10 | RHSA-2025:1917 |
| Red Hat Enterprise Linux 8 | emacs-filesystem | Fixed | 1:26.1-13.el8_10 | RHSA-2025:1917 |
| Red Hat Enterprise Linux 8 | emacs-lucid | Fixed | 1:26.1-13.el8_10 | RHSA-2025:1917 |
| Red Hat Enterprise Linux 8 | emacs-nox | Fixed | 1:26.1-13.el8_10 | RHSA-2025:1917 |
| Red Hat Enterprise Linux 8 | emacs-terminal | Fixed | 1:26.1-13.el8_10 | RHSA-2025:1917 |
| Red Hat Enterprise Linux 6 | emacs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-el | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-nox | Will not fix Out of support scope | ||
| AlmaLinux 9 | emacs | Fixed | 1:27.2-11.el9_5.1 | ALSA-2025:1915 |
| AlmaLinux 9 | emacs-common | Fixed | 1:27.2-11.el9_5.1 | ALSA-2025:1915 |
| AlmaLinux 9 | emacs-filesystem | Fixed | 1:27.2-11.el9_5.1 | ALSA-2025:1915 |
| AlmaLinux 9 | emacs-lucid | Fixed | 1:27.2-11.el9_5.1 | ALSA-2025:1915 |
| AlmaLinux 9 | emacs-nox | Fixed | 1:27.2-11.el9_5.1 | ALSA-2025:1915 |
| AlmaLinux 8 | emacs | Fixed | 1:26.1-13.el8_10 | ALSA-2025:1917 |
| AlmaLinux 8 | emacs-common | Fixed | 1:26.1-13.el8_10 | ALSA-2025:1917 |
| AlmaLinux 8 | emacs-filesystem | Fixed | 1:26.1-13.el8_10 | ALSA-2025:1917 |
| AlmaLinux 8 | emacs-lucid | Fixed | 1:26.1-13.el8_10 | ALSA-2025:1917 |
| AlmaLinux 8 | emacs-nox | Fixed | 1:26.1-13.el8_10 | ALSA-2025:1917 |
| AlmaLinux 8 | emacs-terminal | Fixed | 1:26.1-13.el8_10 | ALSA-2025:1917 |
| Rocky Linux 9 | emacs | Fixed | 1:27.2-11.el9_5.1 | RLSA-2025:1915 |
| Rocky Linux 8 | emacs | Fixed | 1:26.1-13.el8_10 | RLSA-2025:1917 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- emacs: affected: before 29.4.0; fixed in
29.4.0 - 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
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.8 Extended Update Support
- Red Hat Enterprise Linux 9
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.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2025:1915 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:1917 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:1961 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:1962 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:1963 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:1964 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2025:1915
- https://access.redhat.com/errata/RHSA-2025:1917
- https://access.redhat.com/errata/RHSA-2025:1961
- https://access.redhat.com/errata/RHSA-2025:1962
- https://access.redhat.com/errata/RHSA-2025:1963
- https://access.redhat.com/errata/RHSA-2025:1964
- https://access.redhat.com/errata/RHSA-2025:2022
- https://access.redhat.com/errata/RHSA-2025:2130
- https://access.redhat.com/errata/RHSA-2025:2157
- https://access.redhat.com/errata/RHSA-2025:2195
- https://access.redhat.com/errata/RHSA-2025:2754
- https://access.redhat.com/security/cve/CVE-2025-1244
- https://bugzilla.redhat.com/show_bug.cgi?id=2345150
- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=820f0793f0b46448928905552726c1f1b999062f
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.