Vulnerability in Pygments
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.
EPSS: 0.027 (84.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Pygments
- Debian Debian_linux — versions 9.0, 10.0
- Fedoraproject Fedora — versions 33
- Redhat Enterprise_linux — versions 7.0, 8.0
- Redhat Openshift_container_platform — versions 3.11, 4.0
- Redhat Openstack_platform — versions 10.0
- Redhat Software_collections
- N/a Python-pygments — versions python-pygments 2.7.4
Weakness classification (CWE)
Public proof-of-concept exploits
References
- secalert@redhat.com (Patch, Third Party Advisory, x_refsource_MISC, Issue Tracking)
- secalert@redhat.com (vendor-advisory, Third Party Advisory, x_refsource_DEBIAN)
- secalert@redhat.com (mailing-list, x_refsource_MLIST, Mailing List, Third Party Advisory)
- secalert@redhat.com (mailing-list, x_refsource_MLIST, Mailing List, Third Party Advisory)
- secalert@redhat.com (Third Party Advisory, x_refsource_MISC, Not Applicable)
Frequently asked questions
- What is CVE-2021-20270?
- CVE-2021-20270 is a high-severity vulnerability in Pygments, classified under Loop with Unreachable Exit Condition (Infinite Loop). CVSS score: 7.5/10. Published 2021-03-23.
- How severe is CVE-2021-20270?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2021-20270 known to be exploited?
- 3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.