CVE-2022-48338

HIGHCVSS 7.3/10EPSS 1.64%

Last modified

CVE-2022-48338 is a high-severity vulnerability rated 7.3/10 on the CVSS scale. 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. EPSS estimates a 1.64% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.3/10

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

EPSS Probability
1.64%

73.3th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
GnuEmacs<= 28.2

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2022-48338?
CVE-2022-48338 has a CVSS score of 7.3/10 (HIGH severity). The EPSS model estimates a 1.64% probability of exploitation in the next 30 days.
How do I fix CVE-2022-48338?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-48338?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST