GHSA-9w8r-397f-prfh
Infinite Loop in Pygments
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2021-20270
- Alias
- PYSEC-2021-140
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| PyPI · pygments | introduced 1.5, fixed 2.7.4 |
Références
- https://nvd.nist.gov/vuln/detail/CVE-2021-20270 ADVISORY
- https://github.com/pygments/pygments/commit/f91804ff4772e3ab41f46e28d370f57898700333 WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=1922136 WEB
- https://github.com/pygments/pygments PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2021-140.yaml WEB
- https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html WEB
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html WEB
- https://www.debian.org/security/2021/dsa-4889 WEB
- https://www.oracle.com/security-alerts/cpuoct2021.html WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |