CVE-2021-20270

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.
Infinite Loop
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
redhatCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 28%
VendorProductVersion
pygmentspygments
1.5 ≤
𝑥
≤ 2.7.3
redhatopenshift_container_platform
3.11
redhatopenshift_container_platform
4.0
redhatopenstack_platform
10.0
redhatsoftware_collections
-
redhatenterprise_linux
7.0
redhatenterprise_linux
8.0
debiandebian_linux
9.0
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
mediawiki
bullseye
1:1.35.13-1+deb11u2
fixed
bullseye (security)
1:1.35.13-1+deb11u3
fixed
bookworm
1:1.39.7-1~deb12u1
fixed
bookworm (security)
1:1.39.10-1~deb12u1
fixed
sid
1:1.39.10-1
fixed
trixie
1:1.39.10-1
fixed
pygments
bullseye
2.7.1+dfsg-2.1
fixed
bookworm
2.14.0+dfsg-1
fixed
sid
2.18.0+dfsg-1
fixed
trixie
2.18.0+dfsg-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
pygments
lunar
Fixed 2.7.1+dfsg-2
released
kinetic
Fixed 2.7.1+dfsg-2
released
jammy
Fixed 2.7.1+dfsg-2
released
impish
Fixed 2.7.1+dfsg-2
released
hirsute
Fixed 2.7.1+dfsg-2
released
groovy
Fixed 2.3.1+dfsg-4ubuntu0.1
released
focal
Fixed 2.3.1+dfsg-1ubuntu2.1
released
bionic
Fixed 2.2.0+dfsg-1ubuntu0.1
released
xenial
Fixed 2.1+dfsg-1ubuntu0.1
released
trusty
Fixed 1.6+dfsg-1ubuntu1.1+esm1
released