CVEvulnerability

CVE-2021-20270

7.5 HIGH Published 2021-03-23 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2021-03-23
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0 ([email protected])
5.0 MEDIUM — AV:N/AC:L/Au:N/C:N/I:N/A:P
Weaknesses
CWE-835

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.

Affected configurations

• pygments pygments (>= 1.5 <= 2.7.3) • redhat openshift container platform 3.11 • redhat openshift container platform 4.0 • redhat openstack platform 10.0 • redhat software collections • redhat enterprise linux 7.0 • redhat enterprise linux 8.0 • fedoraproject fedora 33 • debian debian linux 9.0 • debian debian linux 10.0

Related

Weakness · CWE (1)

  • CWE-835 Loop with Unreachable Exit Condition weakness

References