CVE-2021-27291

Summary

CVECVE-2021-27291
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-03-17 13:15:00 UTC
Updated2023-11-07 03:31:00 UTC
DescriptionIn 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.

Risk And Classification

Problem Types: CWE-1333

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Fedoraproject Fedora 32 All All All
Operating System Fedoraproject Fedora 33 All All All
Application Pygments Pygments All All All All

References

ReferenceSourceLinkTags
[SECURITY] [DLA 2648-1] mediawiki security update MLIST lists.debian.org
Fix several exponential/cubic complexity regexes found by Ben Caller/… · pygments/pygments@2e7e8c4 · GitHub MISC github.com
Debian -- Security Information -- DSA-4878-1 pygments DEBIAN www.debian.org
[SECURITY] Fedora 33 Update: python-pygments-2.6.1-6.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 32 Update: python-pygments-2.4.2-9.fc32 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
cve-2021-27291 · GitHub MISC gist.github.com
[SECURITY] [DLA 2648-2] mediawiki regression update MLIST lists.debian.org
[SECURITY] Fedora 33 Update: python-pygments-2.6.1-6.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 32 Update: python-pygments-2.4.2-9.fc32 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Debian -- Security Information -- DSA-4889-1 mediawiki DEBIAN www.debian.org
[SECURITY] [DLA 2600-1] pygments security update MLIST lists.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 159462 Oracle Enterprise Linux Security Update for python36:3.6 (ELSA-2021-4150)
  • 159463 Oracle Enterprise Linux Security Update for python27:2.7 (ELSA-2021-4151)
  • 159560 Oracle Enterprise Linux Security Update for resource-agents (ELSA-2021-9553)
  • 178487 Debian Security Update for pygments (DLA 2600-1)
  • 178489 Debian Security Update for pygments (DSA 4878-1)
  • 178531 Debian Security Update for mediawiki (DSA 4889-1)
  • 178584 Debian Security Update for mediawiki (DLA 2648-2)
  • 178613 Debian Security Update for mediawiki (DLA 2648-1)
  • 179545 Debian Security Update for mediawikipygments (CVE-2021-27291)
  • 198315 Ubuntu Security Notification for Pygments Vulnerability (USN-4897-1)
  • 199654 Ubuntu Security Notification for Pygments Vulnerabilities (USN-4897-2)
  • 239582 Red Hat Update for python27 (RHSA-2021:3252)
  • 239798 Red Hat Update for resource-agents security (RHSA-2021:4139)
  • 239809 Red Hat Update for python36:3.6 (RHSA-2021:4150)
  • 239826 Red Hat Update for python27:2.7 (RHSA-2021:4151)
  • 281245 Fedora Security Update for python (FEDORA-2021-3f975f68c8)
  • 281246 Fedora Security Update for python (FEDORA-2021-166dfc62b2)
  • 296053 Oracle Solaris 11.4 Support Repository Update (SRU) 35.94.4 Missing (CPUJUL2021)
  • 355592 Amazon Linux Security Advisory for python3-pygments : ALAS2-2023-2117
  • 355791 Amazon Linux Security Advisory for python-pygments : ALAS2-2023-2198
  • 501172 Alpine Linux Security Update for py3-pygments
  • 670235 EulerOS Security Update for python-pygments (EulerOS-SA-2021-1841)
  • 670337 EulerOS Security Update for python-pygments (EulerOS-SA-2021-1887)
  • 670435 EulerOS Security Update for python-pygments (EulerOS-SA-2021-2065)
  • 670446 EulerOS Security Update for python-pygments (EulerOS-SA-2021-2054)
  • 670471 EulerOS Security Update for python-pygments (EulerOS-SA-2021-2228)
  • 670683 EulerOS Security Update for python-pygments (EulerOS-SA-2021-2441)
  • 751412 SUSE Enterprise Linux Security Update for python-Pygments (SUSE-SU-2021:3841-1)
  • 751415 SUSE Enterprise Linux Security Update for python-Pygments (SUSE-SU-2021:3840-1)
  • 751428 OpenSUSE Security Update for python-Pygments (openSUSE-SU-2021:3841-1)
  • 751429 OpenSUSE Security Update for python-Pygments (openSUSE-SU-2021:3839-1)
  • 751444 OpenSUSE Security Update for python-Pygments (openSUSE-SU-2021:1521-1)
  • 900162 CBL-Mariner Linux Security Update for python-pygments 2.4.2
  • 901938 Common Base Linux Mariner (CBL-Mariner) Security Update for python-pygments (6812-1)
  • 903080 Common Base Linux Mariner (CBL-Mariner) Security Update for python-pygments (3982)
  • 940186 AlmaLinux Security Update for resource-agents (ALSA-2021:4139)
  • 940522 AlmaLinux Security Update for python27:2.7 (ALSA-2021:4151)
  • 940566 AlmaLinux Security Update for python36:3.6 (ALSA-2021:4150)
  • 960320 Rocky Linux Security Update for python27:2.7 (RLSA-2021:4151)
  • 960392 Rocky Linux Security Update for python36:3.6 (RLSA-2021:4150)
  • 960815 Rocky Linux Security Update for resource-agents (RLSA-2021:4139)
  • 982634 Python (pip) Security Update for Pygments (GHSA-pq64-v7f5-gqh8)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report