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...
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Alpine Linux ALPINE-CVE-2021-27291 py3-pygments Fixed in: 2.5.2-r1
- Debian DEBIAN-CVE-2021-27291 mediawiki Fixed in: 1:1.35.2-1
- Ubuntu UBUNTU-CVE-2021-27291 pygments Fixed in: 1.6+dfsg-1ubuntu1.1+esm1
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory lists.debian.org
- advisory lists.debian.org
- advisory lists.debian.org
- advisory debian.org
- advisory debian.org
- patch github.com
- report gist.github.com
- web lists.fedoraproject.org
- web lists.fedoraproject.org