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.
References
Link | Resource |
---|---|
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c | Patch |
https://www.debian.org/security/2023/dsa-5360 | Third Party Advisory |
Information
Published : 2023-02-20 15:15
Updated : 2023-03-02 08:08
NVD link : CVE-2022-48337
Mitre link : CVE-2022-48337
JSON object : View
CWE
CWE-77
Improper Neutralization of Special Elements used in a Command ('Command Injection')
Products Affected
debian
- debian_linux
gnu
- emacs