CVE-2021-27291

HIGHCVSS 7.5/10EPSS 3.83%

Last modified

CVE-2021-27291 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. EPSS estimates a 3.83% chance of exploitation in the next 30 days.

Description

In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. By crafting malicious input, an attacker can cause a denial of service.

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
3.83%

88.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PygmentsPygments>= 1.1, < 2.7.4
DebianDebian Linux9.0
DebianDebian Linux10.0
FedoraprojectFedora32
FedoraprojectFedora33

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-27291?
In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. By crafting malicious input, an attacker can cause a denial of service.
How severe is CVE-2021-27291?
CVE-2021-27291 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 3.83% probability of exploitation in the next 30 days.
How do I fix CVE-2021-27291?
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-27291?

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

Scan your code now

Source: NVD / NIST