Skip to content

CVE-2022-48338 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 interacti...

HighCVSS 7.3 EPSS 1.6%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
ubuntu/emacs(Ubuntu:22.04) < 1:27.1+1-3ubuntu5.2 1:27.1+1-3ubuntu5.2
ubuntu/xemacs21(Ubuntu:22.04) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:22.04) All versions No fix listed
GNU emacs <= 28.2 No fix listed
ubuntu/xemacs21(Ubuntu:24.04) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:24.04) All versions No fix listed
ubuntu/xemacs21(Ubuntu:26.04) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:26.04) All versions No fix listed
ubuntu/xemacs21(Ubuntu:26.10) All versions No fix listed
ubuntu/xemacs21-packages(Ubuntu:26.10) All versions No fix listed
debian/emacs(Debian:12) < 1:28.2+1-11 1:28.2+1-11
debian/emacs(Debian:14) < 1:28.2+1-11 1:28.2+1-11
debian/emacs(Debian:13) < 1:28.2+1-11 1:28.2+1-11

References