PyPI/pygments CVE-2021-20270: high 7.5, EPSS 2.76%
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
Action: Upgrade pygments to 2.7.4 or later.
pip install pygments==2.7.4Affected
| introduced | fixed | last affected |
|---|---|---|
| 1.5 | 2.7.4 | - |
Fixed versions
| 2.7.4 |
Sources
- osv: PYSEC-2021-140
- nvd: CVE-2021-20270
- https://bugzilla.redhat.com/show_bug.cgi?id=1922136
- https://www.debian.org/security/2021/dsa-4889
- https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html
- https://github.com/advisories/GHSA-9w8r-397f-prfh
CVE-2021-20270 · published · modified · JSON