CVE-2022-48337: OS Command Injection
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/emacsto a version that resolves this vulnerability.Fixed in 1:28.2+1-15+deb12u4Fixed in 1:30.1+1-6+deb13u1Fixed in 1:30.2+1-11 - Upgrade
Upgrade
debian/emacsto a version that resolves this vulnerability.Fixed in 1:28.2+1-11
Event History
Frequently Asked Questions
What is CVE-2022-48337?
CVE-2022-48337 is a vulnerability in GNU Emacs that allows attackers to execute commands via shell metacharacters in the name of a source-code file.
What software versions are affected by CVE-2022-48337?
GNU Emacs versions up to 28.2 and Debian Linux version 11.0 are affected by CVE-2022-48337.
How severe is CVE-2022-48337?
CVE-2022-48337 has a severity rating of 9.8 (Critical).
How can an attacker exploit CVE-2022-48337?
Attackers can exploit CVE-2022-48337 by using shell metacharacters in the name of a source-code file to execute commands.
Is there a fix available for CVE-2022-48337?
Yes, a fix is available. Users should update to the latest version of GNU Emacs or apply the recommended updates for Debian Linux.