Bug 2171987 (CVE-2022-48337)

Summary: CVE-2022-48337 emacs: command execution via shell metacharacters
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jmigacz, rtillery
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Emacs package. This flaw allows attackers to execute commands via shell metacharacters in the name of a source-code file.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2171992, 2175188, 2175189, 2175190, 2184369    
Bug Blocks: 2171978    

Description TEJ RATHI 2023-02-21 06:23:10 UTC
GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses the system C library function in its implementation of the etags program. For example, a victim may use the "etags -u *" command (suggested in the etags documentation) in a situation where the current working directory has contents that depend on untrusted input.

https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c

Comment 1 TEJ RATHI 2023-02-21 06:24:32 UTC
Created emacs tracking bugs for this issue:

Affects: fedora-all [bug 2171992]

Comment 3 errata-xmlrpc 2023-05-09 11:04:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2626 https://access.redhat.com/errata/RHSA-2023:2626

Comment 5 errata-xmlrpc 2023-11-14 15:21:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:7083 https://access.redhat.com/errata/RHSA-2023:7083

Comment 7 errata-xmlrpc 2024-03-05 17:05:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:1103 https://access.redhat.com/errata/RHSA-2024:1103

Comment 8 errata-xmlrpc 2024-03-19 17:29:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:1408 https://access.redhat.com/errata/RHSA-2024:1408