Skip to content

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...

HighCVSS 7.8 EPSS 0.67%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
ubuntu/emacs(Ubuntu:22.04) < 1:27.1+1-3ubuntu5.2 1:27.1+1-3ubuntu5.2
ubuntu/xemacs21(Ubuntu:22.04) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:22.04) All versions No fix listed
GNU emacs <= 28.2 No fix listed
debian linux = 10.0 No fix listed
debian linux = 11.0 No fix listed
fedoraproject fedora = 36 No fix listed
fedoraproject fedora = 37 No fix listed
ubuntu/xemacs21(Ubuntu:24.04) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:24.04) All versions No fix listed
alpine/emacs(Alpine:v3.17) < 28.2-r1 28.2-r1
alpine/emacs(Alpine:v3.18) < 28.2-r3 28.2-r3
alpine/emacs(Alpine:v3.19) < 28.2-r3 28.2-r3
alpine/emacs(Alpine:v3.20) < 28.2-r3 28.2-r3
alpine/emacs(Alpine:v3.21) < 28.2-r3 28.2-r3
alpine/emacs(Alpine:v3.22) < 28.2-r3 28.2-r3
alpine/emacs(Alpine:v3.23) < 28.2-r3 28.2-r3
alpine/emacs(Alpine:v3.24) < 28.2-r3 28.2-r3
ubuntu/xemacs21(Ubuntu:26.04) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:26.04) All versions No fix listed
ubuntu/xemacs21(Ubuntu:26.10) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:26.10) All versions No fix listed
debian/emacs(Debian:12) < 1:28.2+1-8 1:28.2+1-8
debian/emacs(Debian:14) < 1:28.2+1-8 1:28.2+1-8
debian/emacs(Debian:13) < 1:28.2+1-8 1:28.2+1-8
Show 1 more
ProductAffected versionsFixed in
debian/xemacs21(Debian:12) < 21.4.24-11 21.4.24-11

References