Unrated severityNVD Advisory· Published Feb 20, 2023· Updated Mar 18, 2025
CVE-2022-48338
CVE-2022-48338
Description
An issue was discovered in GNU Emacs through 28.2. In ruby-mode.el, the ruby-find-library-file function has a local command injection vulnerability. The ruby-find-library-file function is an interactive function, and bound to C-c C-f. Inside the function, the external command gem is called through shell-command-to-string, but the feature-name parameters are not escaped. Thus, malicious Ruby source files may cause commands to be executed.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
11- osv-coords9 versionspkg:rpm/almalinux/emacspkg:rpm/almalinux/emacs-commonpkg:rpm/almalinux/emacs-filesystempkg:rpm/almalinux/emacs-lucidpkg:rpm/almalinux/emacs-noxpkg:rpm/opensuse/emacs&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/emacs&distro=openSUSE%20Tumbleweedpkg:rpm/suse/emacs&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/emacs&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP4
< 1:27.2-8.el9_2.1+ 8 more
- (no CPE)range: < 1:27.2-8.el9_2.1
- (no CPE)range: < 1:27.2-8.el9_2.1
- (no CPE)range: < 1:27.2-8.el9_2.1
- (no CPE)range: < 1:27.2-8.el9_2.1
- (no CPE)range: < 1:27.2-8.el9_2.1
- (no CPE)range: < 27.2-150400.3.6.1
- (no CPE)range: < 28.2-2.1
- (no CPE)range: < 27.2-150400.3.6.1
- (no CPE)range: < 27.2-150400.3.6.1
Patches
Vulnerability mechanics
References
4- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/mitrevendor-advisory
- www.debian.org/security/2023/dsa-5360mitrevendor-advisory
- git.savannah.gnu.org/cgit/emacs.git/commit/mitre
News mentions
0No linked articles in our index yet.