CVE-2021-27291
Public on 2021-03-17
Modified on 2024-02-02
Description
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.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
| Platform | Package | Release Date | Advisory | Status |
|---|---|---|---|---|
| Amazon Linux 1 | python-pygments | No Fix Planned | ||
| Amazon Linux 2 - Core | python-pygments | 2023-08-07 | ALAS2-2023-2198 | Fixed |
| Amazon Linux 2 - Core | python3-pygments | 2023-07-19 | ALAS2-2023-2117 | Fixed |
CVSS Scores
| Score Type | Score | Vector | |
|---|---|---|---|
| Amazon Linux | CVSSv3 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |