CVE-2021-20270
Publication date 9 March 2021
Last updated 25 August 2025
Ubuntu priority
Cvss 3 Severity Score
Description
An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| pygments | ||
| 22.04 LTS jammy |
Fixed 2.7.1+dfsg-2
|
|
| 20.04 LTS focal |
Fixed 2.3.1+dfsg-1ubuntu2.1
|
|
| 18.04 LTS bionic |
Fixed 2.2.0+dfsg-1ubuntu0.1
|
|
| 16.04 LTS xenial |
Fixed 2.1+dfsg-1ubuntu0.1
|
|
| 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 trialSeverity 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-4885-1
- Pygments vulnerability
- 22 March 2021
- USN-4897-2
- Pygments vulnerabilities
- 14 August 2023