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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2022-48337 vendor-advisory
- git.savannah.gnu.org patch
- DSA-5360 third-party-advisory vendor-advisory
- [debian-lts-announce] 20230509 [SECURITY] [DLA 3416-1] emacs security update mailing-list
- FEDORA-2023-5763445abe vendor-advisory
- FEDORA-2023-29df561f1d vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7027-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking