CVE-2022-45939

HIGH

GNU Emacs <= 28.2 - OS Command Injection via ctags 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 ctags program. For example, a victim may use the "ctags *" command (suggested in the ctags documentation) in a situation where the current working directory has contents that depend on untrusted input.

Scores

CVSS v3 7.8
EPSS 0.0005
EPSS Percentile 15.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-78
Status published
Products (5)
debian/debian_linux 10.0
debian/debian_linux 11.0
fedoraproject/fedora 36
fedoraproject/fedora 37
gnu/emacs < 28.2
Published Nov 28, 2022
Tracked Since Feb 18, 2026