Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTl3OHItMzk3Zi1wcmZo

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.

Permalink: https://github.com/advisories/GHSA-9w8r-397f-prfh
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTl3OHItMzk3Zi1wcmZo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 3 years ago
Updated: 9 months ago


CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Identifiers: GHSA-9w8r-397f-prfh, CVE-2021-20270
References: Repository: https://github.com/pygments/pygments
Blast Radius: 36.4

Affected Packages

pypi:Pygments
Dependent packages: 1,074
Dependent repositories: 70,561
Downloads: 102,125,384 last month
Affected Version Ranges: >= 1.5, < 2.7.4
Fixed in: 2.7.4
All affected versions: 2.0.1, 2.0.2, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2, 2.5.1, 2.5.2, 2.6.0, 2.6.1, 2.7.0, 2.7.1, 2.7.2, 2.7.3
All unaffected versions: 0.5.1, 0.7.1, 0.8.1, 0.11.1, 1.1.1, 1.2.1, 1.2.2, 1.3.1, 2.7.4, 2.8.0, 2.8.1, 2.9.0, 2.10.0, 2.11.0, 2.11.1, 2.11.2, 2.12.0, 2.13.0, 2.14.0, 2.15.0, 2.15.1, 2.16.0, 2.16.1, 2.17.0, 2.17.1, 2.17.2, 2.18.0