Azure Linux Advisory
AZL-6811
CVE-2021-20270 affecting package python-pygments for versions less than 2.4.2-7
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 |
|---|---|---|
| Azure Linux:2 | python-pygments | All versions before 2.4.2-7 (fixed in 2.4.2-7) |