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.

References

https://www.oracle.com/security-alerts/cpuoct2021.html

https://www.debian.org/security/2021/dsa-4889

https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html

https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html

https://bugzilla.redhat.com/show_bug.cgi?id=1922136

Details

Source: Mitre, NVD

Published: 2021-03-23

Updated: 2024-11-21

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

Severity: Medium

CVSS v3

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Severity: High

CVSS v4

Base Score: 8.7

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Severity: High