Loop with Unreachable Exit Condition ('Infinite Loop') Affecting python3-Pygments package, versions <2.6.1-7.7.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
2.76% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES152-PYTHON3PYGMENTS-2660968
  • published14 Apr 2022
  • disclosed20 Oct 2021

Introduced: 20 Oct 2021

CVE-2021-20270  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade SLES:15.2 python3-Pygments to version 2.6.1-7.7.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-Pygments package and not the python3-Pygments package as distributed by SLES. See How to fix? for SLES:15.2 relevant fixed versions and status.

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 Base Scores

version 3.1