OS Command Injection Affecting emacs package, versions <1:26.1-9.el8
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-RHEL8-EMACS-5544608
- published 30 Nov 2022
- disclosed 27 Nov 2022
Introduced: 27 Nov 2022
CVE-2022-45939 Open this link in a new tabHow to fix?
Upgrade RHEL:8
emacs
to version 1:26.1-9.el8 or higher.
This issue was patched in RHSA-2023:3042
.
NVD Description
Note: Versions mentioned in the description apply only to the upstream emacs
package and not the emacs
package as distributed by RHEL
.
See How to fix?
for RHEL:8
relevant fixed versions and status.
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.
References
- https://access.redhat.com/security/cve/CVE-2022-45939
- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d48bb4874bc6cd3e69c7a15fc3c91cc141025c51
- https://lists.debian.org/debian-lts-announce/2022/12/msg00046.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FOSK3J7BBAEI4IITW2DRUKLQYUZYKH6Y/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GOXIH2FDEQJEAARE52C3GHTLGQFBYPIB/
- https://www.debian.org/security/2023/dsa-5314
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FOSK3J7BBAEI4IITW2DRUKLQYUZYKH6Y/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GOXIH2FDEQJEAARE52C3GHTLGQFBYPIB/