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.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | python-pygments | python-pygments 2.7.4 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1922136Issue Tracking, Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00003.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2021/dsa-4889Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.htmlNot Applicable, Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1922136Issue Tracking, Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00003.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2021/dsa-4889Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.htmlNot Applicable, Third Party Advisory
Timeline
- Published
- Mar 23, 2021
- Last modified
- Jun 17, 2026
- NVD status
- Modified