NetSight
high7.5

CVE-2021-20270

Infinite Loop in Pygments

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
pipPygments>= 1.5, < 2.7.42.7.4

Affected products

VendorProductAffected versions
PygmentsPygments
from 1.5 through 2.7.3
RedhatOpenshift Container Platform
Versions 3.11, 4.0
RedhatOpenstack Platform
Version 10.0
RedhatSoftware Collections
All versions
RedhatEnterprise Linux
Versions 7.0, 8.0
FedoraprojectFedora
Version 33
DebianDebian Linux
Versions 9.0, 10.0

Weakness classification

References