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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/xemacs21(Debian:12) | < 21.4.24-11 | 21.4.24-11 |
References
- Debian Security Tracker CVE-2022-45939 vendor-advisory
- git.savannah.gnu.org patch
- [debian-lts-announce] 20221231 [SECURITY] [DLA 3257-1] emacs security update mailing-list third-party-advisory
- FEDORA-2022-d69c7f95a4 vendor-advisory
- FEDORA-2022-e37f239f2e vendor-advisory
- DSA-5314 third-party-advisory vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-5781-1 vendor-advisory
- USN-7027-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking