Ubuntu CVE Tracker
UBUNTU-CVE-2021-27291
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | pygments | All versions before 1.6+dfsg-1ubuntu1.1+esm1 (fixed in 1.6+dfsg-1ubuntu1.1+esm1) |
| Ubuntu:16.04:LTS | pygments | All versions before 2.1+dfsg-1ubuntu0.2 (fixed in 2.1+dfsg-1ubuntu0.2) |
| Ubuntu:16.04:LTS | eric | All versions, no fix listed |
| Ubuntu:18.04:LTS | pygments | All versions before 2.2.0+dfsg-1ubuntu0.2 (fixed in 2.2.0+dfsg-1ubuntu0.2) |
| Ubuntu:18.04:LTS | eric | All versions, no fix listed |
| Ubuntu:20.04:LTS | pygments | All versions before 2.3.1+dfsg-1ubuntu2.2 (fixed in 2.3.1+dfsg-1ubuntu2.2) |
| Ubuntu:20.04:LTS | eric | All versions, no fix listed |
| Ubuntu:22.04:LTS | eric | All versions, no fix listed |
| Ubuntu:24.04:LTS | eric | All versions, no fix listed |
| Ubuntu:25.10 | eric | All versions, no fix listed |
| Ubuntu:26.10 | eric | All versions, no fix listed |
| Ubuntu:26.04:LTS | eric | All versions, no fix listed |