Ubuntu CVE Tracker
UBUNTU-CVE-2021-20270
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | pygments | All versions before 1.6+dfsg-1ubuntu1.1+esm1 (fixed in 1.6+dfsg-1ubuntu1.1+esm1) |
| Ubuntu:16.04:LTS | pygments | All versions before 2.1+dfsg-1ubuntu0.1 (fixed in 2.1+dfsg-1ubuntu0.1) |
| Ubuntu:18.04:LTS | pygments | All versions before 2.2.0+dfsg-1ubuntu0.1 (fixed in 2.2.0+dfsg-1ubuntu0.1) |
| Ubuntu:20.04:LTS | pygments | All versions before 2.3.1+dfsg-1ubuntu2.1 (fixed in 2.3.1+dfsg-1ubuntu2.1) |