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.
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-bin-common" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-bin-common-dbgsym" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-common" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-el" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-gtk" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-gtk-dbgsym" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-lucid" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-lucid-dbgsym" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-nox" }, { "binary_version": "1:27.1+1-3ubuntu5.2", "binary_name": "emacs-nox-dbgsym" } ] }