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

Published Feb 12, 2025
·
Updated

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.

Other sources

A shell injection vulnerability exists in GNU Emacs due to improper handling of custom "man" URI schemes. Initially considered low severity, as it required user interaction with local files, it was later discovered that an attacker could exploit this vulnerability by tricking a user into visiting a specially crafted website or an HTTP URL with a redirect, leading to arbitrary shell command execution without further user action.This issue affects all released versions of GNU Emacs, including version 29.4.

Upstream patch: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=820f0793f0b46448928905552726c1f1b999062f

Red Hat

Emacs: shell injection vulnerability in gnu emacs via custom "man" uri scheme

Microsoft

Affected Software

6 affected componentsFixes available
GNU Emacs<=29.4
Microsoft cbl2 emacs 29.4-3
Microsoft azl3 emacs 29.4-2
Microsoft azl3 emacs 29.4-3
Microsoft cbl2 emacs 29.4-2
Microsoft cbl2 emacs 29.4-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 29.4-2
  2. Upgrade

    Upgrade GNU Emacs to a version that resolves this vulnerability.

    Fixed in 29.4Patch 820f0793f0b46448928905552726c1f1b999062f
  3. Compensating control

    Prevent users from following untrusted custom "man" URI schemes or redirect-based URLs to mitigate the GNU Emacs shell injection (arbitrary shell command execution) until the upstream patch is applied.

Event History

Feb 12, 2025
Data Sourced
via Red Hat·07:32 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·02:27 PM
Data Sourced
via MITRE·02:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Feb 20, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Updated
via Microsoft·08:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-1244?

CVE-2025-1244 is classified as a high severity vulnerability due to the potential for arbitrary command execution by attackers.

2

How do I fix CVE-2025-1244?

To mitigate CVE-2025-1244, users should update to the latest version of GNU Emacs that addresses this vulnerability.

3

Who is affected by CVE-2025-1244?

CVE-2025-1244 affects all users of GNU Emacs that do not have the security patch applied.

4

What are the attack vectors for CVE-2025-1244?

Attackers can exploit CVE-2025-1244 by tricking users into visiting malicious websites that utilize custom "man" URI schemes.

5

What kind of impact can CVE-2025-1244 have on my system?

CVE-2025-1244 can lead to unauthorized execution of shell commands, compromising system integrity and security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203