Loop with Unreachable Exit Condition ('Infinite Loop') Affecting py3-pygments package, versions <2.7.4-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

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-ALPINE321-PY3PYGMENTS-8485563
  • published6 Dec 2024
  • disclosed23 Mar 2021

Introduced: 23 Mar 2021

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

How to fix?

Upgrade Alpine:3.21 py3-pygments to version 2.7.4-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-pygments package and not the py3-pygments package as distributed by Alpine. See How to fix? for Alpine:3.21 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