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.
21.4.22-14ubuntu121.4.22-4ubuntu32009.02.17.dfsg.2-221.4.24-4ubuntu121.4.24-5ubuntu12009.02.17.dfsg.2-421.4.24-8build121.4.24-92009.02.17.dfsg.2-42009.02.17.dfsg.2-51:27.1+1-3ubuntu5.221.4.24-9ubuntu22009.02.17.dfsg.2-521.4.24-1221.4.24-12build221.4.24-12build3Exploitability
AV:LAC:LPR:LUI:RScope
S:UImpact
C:HI:HA:HCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H