GHSA-pq64-v7f5-gqh8HighCVSS 7.5

Pygments vulnerable to Regular Expression Denial of Service (ReDoS)

Published
March 29, 2021
Last Modified
October 14, 2024

🔗 CVE IDs covered (1)

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

🎯 Affected products1

  • pip/Pygments:>= 1.1, < 2.7.4

🔗 References (12)