Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Pygments | Pygments | >= 1.5, <= 2.7.3 |
| Redhat | Openshift Container Platform | 3.11 |
| Redhat | Openstack Platform | 10.0 |
| Redhat | Software Collections | - |
| Redhat | Enterprise Linux | 7.0 |
| Fedoraproject | Fedora | 33 |
| Debian | Debian Linux | 9.0 |
Related Weaknesses (CWE)
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1922136Issue TrackingPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00003.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.htmlMailing ListThird Party Advisory
- https://www.debian.org/security/2021/dsa-4889Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.htmlNot ApplicableThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1922136Issue TrackingPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00003.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.htmlMailing ListThird Party Advisory
- https://www.debian.org/security/2021/dsa-4889Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.htmlNot ApplicableThird Party Advisory
FAQ
What is CVE-2021-20270?
CVE-2021-20270 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 ...
How severe is CVE-2021-20270?
CVE-2021-20270 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-20270?
Check the references section above for vendor advisories and patch information. Affected products include: Pygments Pygments, Redhat Openshift Container Platform, Redhat Openstack Platform, Redhat Software Collections, Redhat Enterprise Linux.