Skip to main content
← All vulnerabilities
CVE-2021-27291GHSA-PQ64-V7F5-GQH8PYSEC-2021-141

In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.7.4
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • pygmentsPyPI

    From 1.1 · fixed in 2.7.4

References 9

gist.github.com

GitHub · pygments/pygments

lists.debian.org

debian.org

lists.fedoraproject.org