CVE-2022-48337

CRITICAL

GNU Emacs < 28.2 - OS Command Injection via etags Source-Code Filename

Title source: llm
STIX 2.1

Description

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.

Scores

CVSS v3 9.8
EPSS 0.0045
EPSS Percentile 63.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-78
Status published
Products (2)
debian/debian_linux 11.0
gnu/emacs < 28.2
Published Feb 20, 2023
Tracked Since Feb 18, 2026