Skip to content

CVE-2022-48337 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...

CriticalCVSS 9.8 EPSS 1.6%
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 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.

Affected products

ProductAffected versionsFixed in
debian/emacs(Debian:12) < 1:28.2+1-11 1:28.2+1-11
debian/emacs(Debian:13) < 1:28.2+1-11 1:28.2+1-11
debian/emacs(Debian:14) < 1:28.2+1-11 1:28.2+1-11
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 = 11.0 No fix listed
ubuntu/xemacs21(Ubuntu:24.04) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:24.04) All versions No fix listed
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

References