SOC status:Duty analyst on shift

UK Cyber Defence
VulnerabilityModified

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.

HIGH 7.5EPSS 2.76%

Does this matter?

High impact if exploited, but EPSS currently rates exploitation as unlikely (2.76%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.

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.

CVSS 3.1
7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.76% probability · 86th percentile
Public exploits
None in Exploit-DB
CISA KEV
Not listed
Weakness
CWE-835
Affected
pygments/pygments · redhat/openshift container platform · redhat/openstack platform · redhat/software collections · redhat/enterprise linux · fedoraproject/fedora · debian/debian linux
Source
secalert@redhat.com
EPSS trend
0%3%5%26 October 2026: 2.76%26 October 202626 October 2026

EPSS 2.8% since 26 October 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.

Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.