CVE-2021-20270 - CVE House
Back to Database
Status published High CVE-2021-20270

An infinite loop in SMLLexer in Pygments versions 1.5 to...

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-20270

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

python-pygments
Vulnerable Versions:
python-pygments 2.7.4

Timeline

Official Publish: March 23rd, 2021
Last Modified: August 3rd, 2024
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses (CWE)