7.8

CVE-2022-48339: gnu emacs Improper Encoding or Escaping of Output

CVSS: 7.8v3.1HighModified
AliasesRHSA-2023:3481UBUNTU-CVE-2022-48339USN-5955-1
Published 20-02-2023Last modified 18-03-2025

Vulnerability summary

CVE-2022-48339 is a high (CVSS 7.8) Improper Encoding or Escaping of Output vulnerability in gnu emacs. EPSS estimates a 1.14% chance of exploitation in the next 30 days, higher than 66.2% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
1.14%
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 12 · Related 5

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. htmlfontify.el has a command injection vulnerability. In the hfy-istext-command function, the parameter file and parameter srcdir come from external input, and parameters are not escaped. If a file name or directory name contains shell metacharacters, code may be executed.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

1.14%

Chance of exploitation in the next 30 days

Percentile

66%

Versus all other CVEs

30-day change

0.00 pp

From 1.14% on 20-09-2026

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

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

Redhat7 products
  • emacs< 1:24.3-23.el7_9.1
  • emacs-common< 1:24.3-23.el7_9.1
  • emacs-debuginfo< 1:24.3-23.el7_9.1
  • emacs-el< 1:24.3-23.el7_9.1
  • emacs-filesystem< 1:24.3-23.el7_9.1
Ubuntu5 products
  • emacs< 1:26.3+1-1ubuntu2+esm1 | < 1:27.1+1-3ubuntu5.2
  • emacs24< 24.5+1-6ubuntu1.1+esm2
  • emacs25< 25.2+1-6ubuntu0.1~esm2
  • xemacs21All versions (No fix recorded)
  • xemacs21-packagesAll versions (No fix recorded)
Debian1 product
  • emacs< 1:28.2+1-11
Gnu1 product

4 vendors · 14 products

References

16 links
Show all 16 references