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—
Product
Pygments
PublishedMar 23, 2021
First seenMar 23, 2021
Weakness typeCWE-835CWE-835
How to fix
Update
- pygments2.7.4 or later
Vendor advisories
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pygments pygments | 1.5 ≤ v ≤ 2.7.3 | — |
| redhat openshift_container_platform | 3.11, 4.0 | — |
| redhat openstack_platform | 10.0 | — |
| redhat software_collections | No range specified | — |
| redhat enterprise_linux | 7.0, 8.0 | — |
| fedoraproject fedora | 33 | — |
| debian debian_linux | 9.0, 10.0 | — |
| pygmentsPyPI | 1.5 ≤ v < 2.7.4 | 2.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.