Bug 2171987 (CVE-2022-48337) - CVE-2022-48337 emacs: command execution via shell metacharacters
Summary: CVE-2022-48337 emacs: command execution via shell metacharacters
Keywords:
Status: NEW
Alias: CVE-2022-48337
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2171992 2175188 2175189 2175190 2184369
Blocks: 2171978
TreeView+ depends on / blocked
 
Reported: 2023-02-21 06:23 UTC by TEJ RATHI
Modified: 2024-03-19 17:29 UTC (History)
2 users (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2626 0 None None None 2023-05-09 11:04:08 UTC
Red Hat Product Errata RHSA-2023:7083 0 None None None 2023-11-14 15:21:37 UTC
Red Hat Product Errata RHSA-2024:1103 0 None None None 2024-03-05 17:05:25 UTC
Red Hat Product Errata RHSA-2024:1408 0 None None None 2024-03-19 17:29:30 UTC

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


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