Skip to main content
← All vulnerabilities
CVE-2021-20270GHSA-9W8R-397F-PRFHPYSEC-2021-140

An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standa

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

Summary

An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a python-pygments

    python-pygments 2.7.4

  • pygmentsPyPI

    From 1.5 · fixed in 2.7.4

References 5

bugzilla.redhat.com

debian.org

lists.debian.org

oracle.com