SOC status:Duty analyst on shift

UK Cyber Defence
VulnerabilityModified

CVE-2022-48338

In ruby-mode.el, the ruby-find-library-file function has a local command injection vulnerability.

HIGH 7.3EPSS 1.64%

Does this matter?

High impact if exploited, but EPSS currently rates exploitation as unlikely (1.64%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.

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.

CVSS 3.1
7.3 HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
1.64% probability · 75th percentile
CISA KEV
Not listed
Weakness
CWE-77
Affected
gnu/emacs
Source
cve@mitre.org

Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.