CVE-2022-45939

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.
OS Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.8 HIGH
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
mitreCNA
---
---
CVEADP
---
---
CISA-ADPADP
7.8 HIGH
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 10%
VendorProductVersion
gnuemacs
𝑥
≤ 28.2
debiandebian_linux
10.0
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
emacs
bullseye (security)
1:27.1+1-3.1+deb11u5
fixed
bullseye
1:27.1+1-3.1+deb11u5
no-dsa
buster
no-dsa
bookworm
1:28.2+1-15+deb12u3
fixed
bookworm (security)
1:28.2+1-15+deb12u3
fixed
sid
1:29.4+1-3
fixed
trixie
1:29.4+1-3
fixed
xemacs21
bullseye
no-dsa
buster
no-dsa
bookworm
21.4.24-11
fixed
sid
21.4.24-12
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
emacs
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
ignored
jammy
needed
focal
needed
bionic
dne
xenial
ignored
trusty
ignored
emacs23
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
dne
trusty
ignored
emacs24
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
Fixed 24.5+1-6ubuntu1.1+esm1
released
trusty
ignored
emacs25
kinetic
dne
jammy
dne
focal
dne
bionic
needed
xenial
dne
trusty
dne
xemacs21
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
ignored
xemacs21-packages
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
ignored