CVE-2021-20270

HIGHCVSS 7.5/10EPSS 2.71%

Last modified

CVE-2021-20270 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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 estimates a 2.71% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.5/10

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

EPSS Probability
2.71%

84.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PygmentsPygments>= 1.5, <= 2.7.3
RedhatOpenshift Container Platform3.11
RedhatOpenshift Container Platform4.0
RedhatOpenstack Platform10.0
RedhatSoftware CollectionsAll versions
RedhatEnterprise Linux7.0
RedhatEnterprise Linux8.0
FedoraprojectFedora33
DebianDebian Linux9.0
DebianDebian Linux10.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2021-20270?
CVE-2021-20270 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 2.71% probability of exploitation in the next 30 days.
How do I fix CVE-2021-20270?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-20270?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST