Vulnerability record · CVE-2021-20270 · published 23 March 2021
CVE-2021-20270: Pygments vulnerability
Pygments · Pygments
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.
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/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
7 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=1922136 | Issue TrackingPatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html | Mailing ListThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html | Mailing ListThird Party Advisory |
| https://www.debian.org/security/2021/dsa-4889 | Third Party Advisory |
| https://www.oracle.com/security-alerts/cpuoct2021.html | Not ApplicableThird Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=1922136 | Issue TrackingPatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html | Mailing ListThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html | Mailing ListThird Party Advisory |
| https://www.debian.org/security/2021/dsa-4889 | Third Party Advisory |
| https://www.oracle.com/security-alerts/cpuoct2021.html | Not ApplicableThird Party Advisory |
Track CVE-2021-20270 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-20270), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.