Import Source
https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-35138.json
JSON Data
https://api.test.osv.dev/v1/vulns/AZL-35138
Upstream
Published
2021-03-17T13:15:15Z
Modified
2026-04-01T05:11:56.789384Z
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-27291 affecting package python-pygments for versions less than 2.7.4-1
Details

In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. By crafting malicious input, an attacker can cause a denial of service.

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-35138.json"