CVE-2021-27291

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 84%
VendorProductVersion
pygmentspygments
1.1 ≤
𝑥
< 2.7.4
debiandebian_linux
9.0
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
mediawiki
bullseye
1:1.35.13-1+deb11u2
fixed
bullseye (security)
1:1.35.13-1+deb11u3
fixed
bookworm
1:1.39.7-1~deb12u1
fixed
bookworm (security)
1:1.39.10-1~deb12u1
fixed
sid
1:1.39.10-1
fixed
trixie
1:1.39.10-1
fixed
pygments
bullseye
2.7.1+dfsg-2.1
fixed
bookworm
2.14.0+dfsg-1
fixed
sid
2.18.0+dfsg-1
fixed
trixie
2.18.0+dfsg-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
eric
noble
needed
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needed
impish
ignored
hirsute
ignored
groovy
ignored
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
dne
pygments
noble
Fixed 2.7.1+dfsg-2ubuntu1
released
mantic
Fixed 2.7.1+dfsg-2ubuntu1
released
lunar
Fixed 2.7.1+dfsg-2ubuntu1
released
kinetic
Fixed 2.7.1+dfsg-2ubuntu1
released
jammy
Fixed 2.7.1+dfsg-2ubuntu1
released
impish
Fixed 2.7.1+dfsg-2ubuntu1
released
hirsute
Fixed 2.7.1+dfsg-2ubuntu1
released
groovy
Fixed 2.3.1+dfsg-4ubuntu0.2
released
focal
Fixed 2.3.1+dfsg-1ubuntu2.2
released
bionic
Fixed 2.2.0+dfsg-1ubuntu0.2
released
xenial
Fixed 2.1+dfsg-1ubuntu0.2
released
trusty
Fixed 1.6+dfsg-1ubuntu1.1+esm1
released