CVE-2021-20270

High

Description

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductPygments
PublishedMar 23, 2021
First seenMar 23, 2021
Weakness typeCWE-835CWE-835

How to fix

Update
  • pygments2.7.4 or later

Affected products

ProductAffected versionsFixed in
pygments pygments1.5 ≤ v ≤ 2.7.3—
redhat openshift_container_platform3.11, 4.0—
redhat openstack_platform10.0—
redhat software_collectionsNo range specified—
redhat enterprise_linux7.0, 8.0—
fedoraproject fedora33—
debian debian_linux9.0, 10.0—
pygmentsPyPI1.5 ≤ v < 2.7.42.7.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.