Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXBxNjQtdjdmNS1ncWg4
Pygments vulnerable to Regular Expression Denial of Service (ReDoS)
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.
Permalink: https://github.com/advisories/GHSA-pq64-v7f5-gqh8JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXBxNjQtdjdmNS1ncWg4
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 3 years ago
Updated: about 1 month 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-pq64-v7f5-gqh8, CVE-2021-27291
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-27291
- https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14
- https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce
- https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html
- https://www.debian.org/security/2021/dsa-4878
- 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/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2021-141.yaml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55
- https://lists.fedoraproject.org/archives/list/[email protected]/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ
- https://github.com/advisories/GHSA-pq64-v7f5-gqh8
Blast Radius: 36.4
Affected Packages
pypi:Pygments
Dependent packages: 1,834Dependent repositories: 70,561
Downloads: 149,988,307 last month
Affected Version Ranges: >= 1.1, < 2.7.4
Fixed in: 2.7.4
All affected versions: 1.1.1, 1.2.1, 1.2.2, 1.3.1, 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, 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