pygments
Affected
- introduced
1.1, fixed2.7.4(ecosystem)
Fixed versions
2.7.4
Fix
- Fixed version
2.7.4pip install --upgrade pygments==2.7.4
Advisory
Also known as: CVE-2021-27291, GHSA-pq64-v7f5-gqh8
The record has no summary.
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.
Not rated by the source.
1.1, fixed 2.7.4 (ecosystem)2.7.4
2.7.4pip install --upgrade pygments==2.7.4Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0