CVE-2022-48338: gnu emacs Command Injection
Vulnerability summary
CVE-2022-48338 is a high (CVSS 7.3) Command Injection vulnerability in gnu emacs. EPSS estimates a 1.64% chance of exploitation in the next 30 days, higher than 76% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 6 · Related 3Timeline
- 20-02-2023PublishedVulnerability first disclosed.
- 18-03-2025Last modifiedVulnerability information updated.
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 metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.64%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
0.00 pp
From 1.64% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu3 products
- emacs< 1:27.1+1-3ubuntu5.2
- xemacs21All versions (No fix recorded)
- xemacs21-packagesAll versions (No fix recorded)
Debian1 product
- emacs< 1:28.2+1-11
Gnu1 product
- emacs≤ 28.2
3 vendors · 5 products
References
9 links- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory