7.3

CVE-2022-48338: gnu emacs Command Injection

CVSS: 7.3v3.1HighModified
AliasesUBUNTU-CVE-2022-48338DEBIAN-CVE-2022-48338
Published 20-02-2023Last modified 18-03-2025

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.

Overall risk
30/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.3/10
010
High · v3.1 (CVE.org)
EPSS score
1.64%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 3

Timeline

  1. 20-02-2023
    PublishedVulnerability first disclosed.
  2. 18-03-2025
    Last 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

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

20-09-202620-10-2026
EPSS score
1.64%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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

3 vendors · 5 products

References

9 links