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, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more) |
References | DLA-2590-1, DLA-2648-1, DSA-4870-1, DSA-4889-1 |
Debian Bugs | 984664 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
mediawiki (PTS) | buster | 1:1.31.16-1+deb10u2 | fixed |
buster (security) | 1:1.31.16-1+deb10u4 | fixed | |
bullseye (security), bullseye | 1:1.35.8-1~deb11u1 | fixed | |
bookworm, sid | 1:1.39.2-1 | fixed | |
pygments (PTS) | buster, buster (security) | 2.3.1+dfsg-1+deb10u2 | fixed |
bullseye | 2.7.1+dfsg-2.1 | fixed | |
bookworm | 2.14.0+dfsg-1 | fixed | |
sid | 2.15.1+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+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