Name | CVE-2021-27291 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2600-1, DLA-2648-1, DSA-4878-1, DSA-4889-1 |
Debian Bugs | 985574 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
mediawiki (PTS) | bullseye | 1:1.35.13-1+deb11u2 | fixed |
bullseye (security) | 1:1.35.13-1+deb11u3 | fixed | |
bookworm, bookworm (security) | 1:1.39.10-1~deb12u1 | fixed | |
sid, trixie | 1:1.39.10-1 | fixed | |
pygments (PTS) | bullseye | 2.7.1+dfsg-2.1 | fixed |
bookworm | 2.14.0+dfsg-1 | fixed | |
sid, trixie | 2.18.0+dfsg-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
mediawiki | source | stretch | 1:1.27.7-1~deb9u8 | DLA-2648-1 | ||
mediawiki | source | buster | 1:1.31.14-1~deb10u1 | DSA-4889-1 | ||
mediawiki | source | (unstable) | 1:1.35.2-1 | |||
pygments | source | stretch | 2.2.0+dfsg-1+deb9u2 | DLA-2600-1 | ||
pygments | source | buster | 2.3.1+dfsg-1+deb10u2 | DSA-4878-1 | ||
pygments | source | (unstable) | 2.7.1+dfsg-2.1 | 985574 |
https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce
https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14