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.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
Debian | 12 | all | emacs | < 1:28.2+1-11 | emacs_1:28.2+1-11_all.deb |
Debian | 11 | all | emacs | < 1:27.1+1-3.1+deb11u2 | emacs_1:27.1+1-3.1+deb11u2_all.deb |
Debian | 10 | all | emacs | < 1:26.1+1-3.2+deb10u2 | emacs_1:26.1+1-3.2+deb10u2_all.deb |
Debian | 999 | all | emacs | < 1:28.2+1-11 | emacs_1:28.2+1-11_all.deb |
Debian | 13 | all | emacs | < 1:28.2+1-11 | emacs_1:28.2+1-11_all.deb |