VDB

ALPINE-CVE-2021-20270

ALPINE-CVE-2021-20270 PUBLISHED CVSS 7.5 HIGH

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.

Risk Scores

CVSS v3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected Products

VendorProductVersions
Alpine:v3.18py3-pygments2.7.3-r0, 2.7.2-r0, 2.7.1-r0
Alpine:v3.23py3-pygments2.4.2-r2, 2.7.2-r0, 2.7.1-r0
Alpine:v3.21py3-pygments0, 1.3.1-r0, 1.3.1-r1
Alpine:v3.19py3-pygments0, 1.3.1-r0, 1.3.1-r1
Alpine:v3.17py3-pygments2.7.3-r0, 0, 1.3.1-r0
Alpine:v3.16py3-pygments2.4.2-r2, 2.7.3-r0, 2.7.2-r0
Alpine:v3.20py3-pygments0, 2.7.3-r0, 2.7.2-r0
Alpine:v3.14py3-pygments2.7.3-r0, 1.3.1-r0, 1.3.1-r1
Alpine:v3.22py3-pygments2.7.3-r0, 1.4-r2, 1.5-r0
Alpine:v3.15py3-pygments0, 1.3.1-r0, 1.3.1-r1

Timeline

  • Mar 23, 2021 CVE Published
  • Dec 3, 2025 CVE Updated
  • Apr 30, 2026 Distribution Patch
Open in Interactive Console →
$ Console Community · 100/wk Open console ›