Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2021-27291 Details

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce CVEExploitThird Party Advisory
https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14 CVEPatchThird Party Advisory
https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html CVEMailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html CVEMailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html CVEMailing ListThird Party Advisory

see all 18 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-1333Inefficient Regular Expression Complexity[email protected]

Affected Products

ProductVersions
pygments pygments
>= 1.1, < 2.7.4

CPE

  • cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
debian debian linux
9.0
10.0

CPE

  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
32
33

CPE

  • cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

13 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2021-27291
NVD Published Date:
Mar 17, 2021
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2021-27291 Details - Not Deferred