Vulnerabilities · 2022 · Gnu
CVE-2022-45939
Gnu Emacs vulnerability
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
Emacs, Debian Linux, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gnu Emacs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.savannah.gnu.org/cgit/emacs.git/commit/?id=d48bb4874bc6cd3e69c7a15fc3c91cc141025c51 · Patch
- lists.debian.org/debian-lts-announce/2022/12/msg00046.html · Third Party Advisory
- www.debian.org/security/2023/dsa-5314 · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G
- nvd.nist.gov/vuln/detail/CVE-2022-45939
- cve.org/CVERecord?id=CVE-2022-45939
More vulnerabilities in Gnu products
CVE-2026-24061CVE-2026-0915CVE-2026-0861CVE-2025-66866CVE-2025-66865CVE-2025-66864CVE-2025-66863CVE-2025-66862All 1,147
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.