CVE-2021-20270

Aliases:GHSA-9w8r-397f-prfhPYSEC-2021-140
Advisory lineage Upstream: 0 Downstream: 18
Modified
Published: 23 Mar 2021, 16:40
Last modified:03 Aug 2024, 17:37

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
0.22% LOW
0% probability +0.11%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

23 Mar 2021, 16:40
Published
Vulnerability first disclosed
03 Aug 2024, 17:37
Last Modified
Vulnerability information updated

Description

An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.

CVSS Metrics

  • v4.0HIGHScore: 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • v2.0MEDIUMScore: 5AV:N/AC:L/Au:N/C:N/I:N/A:P

EPSS Trends

Current EPSS score: 0.22% Percentile: 45%

Techniques & Countermeasures

  • CWE-835Loop with Unreachable Exit Condition ('Infinite Loop')

    The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.

Affected Systems

  • debiandebian_linux

    9.0 | 10.0

  • fedoraprojectfedora

    33

  • pygmentspygments

    ≥ 1.5, ≤ 2.7.3

  • PyPIpygments

    ≥ 1.5, < 2.7.4

  • redhatenterprise_linux

    7.0 | 8.0

  • redhatopenshift_container_platform

    3.11 | 4.0

  • redhatopenstack_platform

    10.0

  • redhatsoftware_collections

    na

References (10)