CVE-2021-20270

HIGH

Pygments < 2.7.3 - Infinite Loop

Title source: rule
STIX 2.1

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.

References (5)

Core 5
Core References
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=1922136
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2021/dsa-4889
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html
Not Applicable, Third Party Advisory x_refsource_misc
https://www.oracle.com/security-alerts/cpuoct2021.html

Scores

CVSS v3 7.5
EPSS 0.0022
EPSS Percentile 44.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-835
Status published
Products (11)
debian/debian_linux 9.0
debian/debian_linux 10.0
fedoraproject/fedora 33
pygments/pygments 1.5 - 2.7.3
pypi/Pygments 1.5 - 2.7.4PyPI
redhat/enterprise_linux 7.0
redhat/enterprise_linux 8.0
redhat/openshift_container_platform 3.11
redhat/openshift_container_platform 4.0
redhat/openstack_platform 10.0
... and 1 more
Published Mar 23, 2021
Tracked Since Feb 18, 2026