CVE-2021-27291: debian debian_linux
Vulnerability summary
CVE-2021-27291 is a high (CVSS 7.5) vulnerability in debian debian_linux. EPSS estimates a 3.91% chance of exploitation in the next 30 days, higher than 90.2% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 1Timeline
- 17-03-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 5 sources · 3 versions- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
3.91%
Chance of exploitation in the next 30 days
Percentile
90%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.91% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundB1A2Cc0C68A35C57188575Eb496De5Ce
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse15 products
- python-Pygments&distro=SUSE Enterprise Storage 6< 2.6.1-7.10.1
- python-Pygments&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 2.6.1-7.10.1
- python-Pygments&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 2.6.1-7.10.1
- python-Pygments&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS< 2.2.0-4.9.1
- python-Pygments&distro=SUSE Linux Enterprise High Performance Computing 15-LTSS< 2.2.0-4.9.1
Debian3 products
- mediawiki< 1:1.35.2-1
- pygments< 2.3.1+dfsg-1+deb10u2 | < 2.2.0+dfsg-1+deb9u2 | < 2.7.1+dfsg-2.1
- debian_linuxEOL9.0 | 10.0
Opensuse2 products
- python-Pygments&distro=openSUSE Leap 15.2< 2.6.1-lp152.5.12.1
- python-Pygments&distro=openSUSE Leap 15.3< 2.6.1-4.3.1 | < 2.2.0-4.9.1
Ubuntu2 products
- ericAll versions (No fix recorded)
- pygments< 1.6+dfsg-1ubuntu1.1+esm1 | < 2.1+dfsg-1ubuntu0.2 | < 2.2.0+dfsg-1ubuntu0.2 | < 2.3.1+dfsg-1ubuntu2.2
Alpine1 product
- py3-pygments< 2.5.2-r1 | < 2.6.1-r1
Fedoraproject1 product
- fedoraEOL32 | 33
Mageia1 product
- python-pygments< 2.3.1-1.2.mga7
Pygments1 product
- pygments≥ 1.1, < 2.7.4
PyPI1 product
- pygments< 2e7e8c4a7b318f4032493773732754e418279a14 | ≥ 1.1, < 2.7.4
9 vendors · 27 products
References
35 links- gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ceX Refsource MISCWEBREPORTExploitThird Party Advisory
- github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14X Refsource MISCWEBFIXPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/03/msg00024.htmlMailing ListX Refsource MLISTWEBThird Party Advisory
- www.debian.org/security/2021/dsa-4878Vendor AdvisoryX Refsource DEBIANWEBAdvisoryThird Party Advisory
- www.debian.org/security/2021/dsa-4889Vendor AdvisoryX Refsource DEBIANWEBAdvisoryThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/05/msg00003.htmlMailing ListX Refsource MLISTWEBThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/05/msg00006.htmlMailing ListX Refsource MLISTWEBThird Party Advisory
Show all 35 references
- github.com/pygments/pygmentsPACKAGE
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory