vulnerability

Ubuntu: (Multiple Advisories) (CVE-2021-27291): Pygments vulnerability

Severity
5
CVSS
(AV:N/AC:L/Au:N/C:N/I:N/A:P)
Published
Mar 17, 2021
Added
Mar 31, 2021
Modified
Aug 18, 2025

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.

Solutions

ubuntu-pro-upgrade-python-pygmentsubuntu-pro-upgrade-python3-pygments
Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.