Import Source
https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-35137.json
JSON Data
https://api.test.osv.dev/v1/vulns/AZL-35137
Upstream
Published
2021-03-23T17:15:13Z
Modified
2026-04-01T05:12:52.659484Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
CVE-2021-20270 affecting package python-pygments for versions less than 2.7.4-1
Details

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.

References

Affected packages

Azure Linux:3 / python-pygments

Package

Name
python-pygments
Purl
pkg:rpm/azure-linux/python-pygments

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.4-1

Database specific

source
"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-35137.json"