Name | CVE-2021-20270 |
Description | An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword. |
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-2590-1, DLA-2648-1, DSA-4870-1, DSA-4889-1, ELA-377-1 |
Debian Bugs | 984664 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
mediawiki (PTS) | stretch (security) | 1:1.27.7-1+deb9u11 | fixed |
stretch (lts), stretch | 1:1.27.7-1+deb9u13 | fixed | |
buster (security), buster, buster (lts) | 1:1.31.16-1+deb10u8 | fixed | |
bullseye | 1:1.35.13-1+deb11u2 | fixed | |
bullseye (security) | 1:1.35.13-1+deb11u3 | fixed | |
bookworm (security), bookworm | 1:1.39.10-1~deb12u1 | fixed | |
sid, trixie | 1:1.39.10-1 | fixed | |
pygments (PTS) | jessie, jessie (lts) | 2.0.1+dfsg-1.1+deb8u3 | fixed |
stretch (security), stretch (lts), stretch | 2.2.0+dfsg-1+deb9u2 | fixed | |
buster (security), buster, buster (lts) | 2.3.1+dfsg-1+deb10u2 | fixed | |
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 | jessie | 2.0.1+dfsg-1.1+deb8u2 | ELA-377-1 | ||
pygments | source | stretch | 2.2.0+dfsg-1+deb9u1 | DLA-2590-1 | ||
pygments | source | buster | 2.3.1+dfsg-1+deb10u1 | DSA-4870-1 | ||
pygments | source | (unstable) | 2.7.1+dfsg-2 | 984664 |
https://github.com/pygments/pygments/issues/1625
https://github.com/pygments/pygments/commit/f91804ff4772e3ab41f46e28d370f57898700333