Arbitrary Command Injection Affecting emacs package, versions <1:26.1-7.el8_6.3
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-6398249
- published 6 Mar 2024
- disclosed 21 Feb 2023
Introduced: 21 Feb 2023
CVE-2022-48337 Open this link in a new tabHow to fix?
Upgrade RHEL:8
emacs
to version 1:26.1-7.el8_6.3 or higher.
This issue was patched in RHSA-2024:1103
.
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 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.
References
- https://access.redhat.com/security/cve/CVE-2022-48337
- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c
- https://www.debian.org/security/2023/dsa-5360
- https://lists.debian.org/debian-lts-announce/2023/05/msg00008.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/