PT-2023-9294 · Gnu+9 · Gnu Emacs+9

Xi Lu

·

Published

2023-02-20

·

Updated

2025-03-18

·

CVE-2022-48337

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions GNU Emacs versions 28.2 and earlier
Description The issue is related to the improper neutralization of special elements used in the operating system command. This can allow an attacker to execute arbitrary code 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 in a situation where the current working directory has contents that depend on untrusted input.
Recommendations For GNU Emacs versions 28.2 and earlier, consider disabling the use of the etags program until a patch is available, or avoid using the "etags -u *" command in situations where the current working directory has contents that depend on untrusted input. Restrict access to the lib-src/etags.c component to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2023:2626
ALSA-2023:7083
ALT-PU-2023-5762
AZL-13702
BDU:2024-06036
CESA-2023_7083
CVE-2022-48337
DLA-3416-1
DSA-5360-1
MGASA-2023-0081
OESA-2023-1148
OPENSUSE-SU-2024:12721-1
RHSA-2023:2626
RHSA-2023:7083
RHSA-2023_2626
RHSA-2023_7083
RHSA-2024:1103
RHSA-2024:1408
ROSA-SA-2024-2433
SUSE-SU-2023:0597-1
SUSE-SU-2023:0598-1
SUSE-SU-2023:0675-1
SUSE-SU-2023_0597-1
SUSE-SU-2023_0598-1
SUSE-SU-2023_0675-1
USN-7027-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Gnu Emacs
Linuxmint
Red Hat
Red Os
Suse
Ubuntu