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 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.
Published:Feb 20, 2023
Last Modified:Mar 18, 2025
EPS:Feb 20, 2023
EPSS Score:0.00119
CVSS Score:7.3
Affected Products
Vendor
Product
Action
Vendor
Gnu
Product
Emacs
Gnu
Emacs
Vendor
Redhat
Product
Enterprise Linux
Redhat
Enterprise Linux
Exploits
No exploit reference
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
References
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
