5.5

CVE-2022-40896: pygments

Modified
AliasesMGASA-2024-0107GHSA-mrwq-x4v8-fh7pPYSEC-2023-117
Published 19-07-2023Last modified 27-11-2024

Vulnerability summary

CVE-2022-40896 is a medium (CVSS 5.5) vulnerability in pygments. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 44.1% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.52%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 2

Timeline

  1. 19-07-2023
    PublishedVulnerability first disclosed.
  2. 27-11-2024
    Last modifiedVulnerability information updated.

Description

A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.52%

Chance of exploitation in the next 30 days

Percentile

44%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.52% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (pyup.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • pygmentsAll versions (No fix recorded) | < 2.15.1+dfsg-1
Mageia1 product
  • python-pygments< 2.15.1-1.mga9
Pygments1 product
PyPI1 product
  • pygments< 2.15.0 | < 2.15.1
Ubuntu1 product
  • pygmentsAll versions (No fix recorded) | < 2.11.2+dfsg-2ubuntu0.1

5 vendors · 5 products

References

24 links
Show all 24 references