Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-20270

7.5 · HIGH
Published Mar 23, 2021 pygments CWE-835 EPSS 2.76% (85th pctl)

Overview

CVE-2021-20270 is a high-severity vulnerability affecting pygments pygments. It was published on March 23, 2021 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from pygments. Update pygments to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
pygments pygments 1.5 Affected

Frequently Asked Questions

What is CVE-2021-20270?

CVE-2021-20270 is a high-severity vulnerability affecting pygments pygments. It was published on March 23, 2021 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2021-20270?

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-20270?

Check the references section for vendor advisories and patches from pygments. Update pygments to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-20270?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-20270 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.