Red Hat Enterprise Linux 7 Extended Lifecycle Support
Emacs: 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 29.4.0
Fixed in 29.4.0
Fixed in 1:24.3-23.el7_9.2
Fixed in 1:26.1-13.el8_10
Fixed in 1:26.1-13.el8_10
Fixed in 1:26.1-5.el8_2.3
Fixed in 1:26.1-5.el8_4.3
Fixed in 1:26.1-5.el8_4.3
Fixed in 1:26.1-5.el8_4.3
Fixed in 1:26.1-7.el8_6.6
Fixed in 1:26.1-7.el8_6.6
Fixed in 1:26.1-7.el8_6.6
Fixed in 1:26.1-10.el8_8.7
Fixed in 1:27.2-11.el9_5.1
Fixed in 1:27.2-6.el9_0.2
Fixed in 1:27.2-8.el9_2.2
Fixed in 1:27.2-10.el9_4.1
Fixed in 1.3.1-1741784043
Mitigation
Upgrade the affected product to 29.4.0 or later.
Upgrade Red Hat Enterprise Linux 7 Extended Lifecycle Support to 1:24.3-23.el7_9.2 or later.
Upgrade Red Hat Enterprise Linux 8 to 1:26.1-13.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8 to 1:26.1-13.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8.2 Advanced Update Support to 1:26.1-5.el8_2.3 or later.
Upgrade Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support to 1:26.1-5.el8_4.3 or later.
Upgrade Red Hat Enterprise Linux 8.4 Telecommunications Update Service to 1:26.1-5.el8_4.3 or later.
Upgrade Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions to 1:26.1-5.el8_4.3 or later.
Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 1:26.1-7.el8_6.6 or later.
Upgrade Red Hat Enterprise Linux 8.6 Telecommunications Update Service to 1:26.1-7.el8_6.6 or later.
Upgrade Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions to 1:26.1-7.el8_6.6 or later.
Upgrade Red Hat Enterprise Linux 8.8 Extended Update Support to 1:26.1-10.el8_8.7 or later.
Upgrade Red Hat Enterprise Linux 9 to 1:27.2-11.el9_5.1 or later.
Upgrade Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions to 1:27.2-6.el9_0.2 or later.
Upgrade Red Hat Enterprise Linux 9.2 Extended Update Support to 1:27.2-8.el9_2.2 or later.
Upgrade Red Hat Enterprise Linux 9.4 Extended Update Support to 1:27.2-10.el9_4.1 or later.
Upgrade Builds for Red Hat OpenShift 1.3.2 to 1.3.1-1741784043 or later.
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.
References
- Vendor advisory access.redhat.com/errata/RHSA-2025:1915
- Vendor advisory access.redhat.com/errata/RHSA-2025:1917
- Vendor advisory access.redhat.com/errata/RHSA-2025:1961
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2025:1962
- Vendor advisory access.redhat.com/errata/RHSA-2025:1963
- Vendor advisory access.redhat.com/errata/RHSA-2025:1964
- Vendor advisory access.redhat.com/errata/RHSA-2025:2022
- Vendor advisory access.redhat.com/errata/RHSA-2025:2130
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.