Bug 2537390

Summary: emacs: Emacs: arbitrary code execution, incomplete fix for CVE-2024-53920 [fedora-all]
Product: [Fedora] Fedora Reporter: Tomas Hoger <thoger>
Component: emacsAssignee: Daiki Ueno <dueno>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: benson_muite, dan.cermak, dueno, gordon.messmer, marcandre.lureau, mavit, msekleta, phracek
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["0e52a3eb-ac28-42b8-ac4d-907e6f0c2499"]}
Fixed In Version: emacs-31.1-4.fc46 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-09-23 14:40:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2537347    

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

Comment 1 Fedora Update System 2026-09-23 14:36:03 UTC
FEDORA-2026-b3367f2111 (emacs-31.1-4.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-b3367f2111

Comment 2 Fedora Update System 2026-09-23 14:40:35 UTC
FEDORA-2026-b3367f2111 (emacs-31.1-4.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2026-09-23 17:19:35 UTC
FEDORA-2026-8604c8d63b (emacs-31.1-4.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-8604c8d63b

Comment 4 Fedora Update System 2026-09-24 01:35:26 UTC
FEDORA-2026-8604c8d63b has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-8604c8d63b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-8604c8d63b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-09-26 01:47:24 UTC
FEDORA-2026-91259c13b9 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-91259c13b9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-91259c13b9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.