Bug 2537390 - emacs: Emacs: arbitrary code execution, incomplete fix for CVE-2024-53920 [fedora-all]
Summary: emacs: Emacs: arbitrary code execution, incomplete fix for CVE-2024-53920 [fe...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Daiki Ueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["0e52a3eb-ac28-42b8-ac4d-9...
Depends On:
Blocks: CVE-2026-96442
TreeView+ depends on / blocked
 
Reported: 2026-09-21 13:38 UTC by Tomas Hoger
Modified: 2026-09-21 13:38 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tomas Hoger 2026-09-21 13:38:31 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Emacs upstream reports:

Bas Alberts of the GitHub Security Lab discovered that the fix for
CVE-2024-53920, an arbitrary code execution flaw in Emacs, was
incomplete.  Viewing or editing untrusted text files in modes other than
Emacs Lisp mode can also permit arbitrary code execution.  For example:

    #!/usr/bin/perl
    # -*- mode: perl; mode: flymake -*-
    BEGIN { system("touch uh_oh.txt"); }

This problem affects all Emacs versions affected by CVE-2024-53920.
This means Emacs 24 and newer, and possibly also older versions.

A minimal fix, attached, is queued up for release with Emacs 31.2.
We (the Emacs upstream maintainers) don't expect to backport the fix to
older Emacs releases ourselves.

Source:
https://www.openwall.com/lists/oss-security/2026/09/14/1

Upstream commit - emacs-31 branch:
https://github.com/emacs-mirror/emacs/commit/abc802ee2eb0b1663349ddf22a461f8e54a383fb

Upstream commit - master branch:
https://github.com/emacs-mirror/emacs/commit/135e6f63f08fee3d374fa1a5187bce941a2d3e3c


Note You need to log in before you can comment on or make changes to this bug.