CVE-2021-27291 – pygments
Package
Manager: pip
Name: pygments
Vulnerable Version: >=1.1 <2.7.4
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS: 0.02326 pctl0.8422
Details
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.
Metadata
Created: 2021-03-29T16:33:03Z
Modified: 2024-10-14T16:10:54Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-pq64-v7f5-gqh8/GHSA-pq64-v7f5-gqh8.json
CWE IDs: ["CWE-400"]
Alternative ID: GHSA-pq64-v7f5-gqh8
Finding: F002
Auto approve: 1