Infinite Loop in Pygments
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.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Python (PyPI) | pygments | >= 1.5, < 2.7.4 | 2.7.4 |
Verweise
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2021-20270
- https://github.com/pygments/pygments/commit/f91804ff4772e3ab41f46e28d370f57898700333
- https://github.com/pygments/pygments
- https://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2021-140.yaml
- https://www.oracle.com/security-alerts/cpuoct2021.html
- CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Schwäche (CWE)
CWE-835- Plattform
- Python (PyPI)
- Paket
pygments- Veröffentlicht
- 23.03.2021
- Aktualisiert
- 11.10.2026 11:20
Quellen und Lizenzen
OSV / GitHub Advisory Database - PYSEC-2021-140 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-9w8r-397f-prfh - CC BY 4.0
Schwachstellenhistorie: pygments
Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 5
- Erste → letzte
- 01.2016 03.2026
- Ohne Fix
- 0
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Kritisch 1
- Hoch 2
- Mittel 1
- Niedrig 1
Veröffentlichungen pro Jahr
- 2017: 0
- 2018: 0
- 2019: 0
- 2020: 0
- 2021: 2
- 2022: 0
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 1
früher: 1
-
Infinite Loop in Pygments dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.