CVE-2021-27291
Publication date 17 March 2021
Last updated 11 July 2025
Ubuntu priority
Cvss 3 Severity Score
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| eric | 25.10 questing |
Vulnerable
|
| 25.04 plucky |
Vulnerable
|
|
| 24.04 LTS noble |
Vulnerable
|
|
| 22.04 LTS jammy |
Vulnerable
|
|
| 20.04 LTS focal |
Needs evaluation
|
|
| 18.04 LTS bionic |
Needs evaluation
|
|
| 16.04 LTS xenial |
Needs evaluation
|
|
| 14.04 LTS trusty | Not in release | |
| pygments | 25.10 questing |
Fixed 2.7.1+dfsg-2ubuntu1
|
| 25.04 plucky |
Fixed 2.7.1+dfsg-2ubuntu1
|
|
| 24.04 LTS noble |
Fixed 2.7.1+dfsg-2ubuntu1
|
|
| 22.04 LTS jammy |
Fixed 2.7.1+dfsg-2ubuntu1
|
|
| 20.04 LTS focal |
Fixed 2.3.1+dfsg-1ubuntu2.2
|
|
| 18.04 LTS bionic |
Fixed 2.2.0+dfsg-1ubuntu0.2
|
|
| 16.04 LTS xenial |
Fixed 2.1+dfsg-1ubuntu0.2
|
|
| 14.04 LTS trusty |
Fixed 1.6+dfsg-1ubuntu1.1+esm1
|
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu Pro 30-day free trialNotes
Severity score breakdown
| Parameter | Value |
|---|---|
| Base score |
|
| Attack vector | Network |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity impact | None |
| Availability impact | High |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References
Related Ubuntu Security Notices (USN)
- USN-4897-1
- Pygments vulnerability
- 30 March 2021
- USN-4897-2
- Pygments vulnerabilities
- 14 August 2023