CVE-2021-20270
Pygments vulnerability
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.
Affected products
Pygments, Openshift Container Platform, Openstack Platform, Software Collections, Enterprise Linux, Fedora, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pygments runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugzilla.redhat.com/show_bug.cgi?id=1922136 · Patch
- lists.debian.org/debian-lts-announce/2021/05/msg00003.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2021/05/msg00006.html · Third Party Advisory
- www.debian.org/security/2021/dsa-4889 · Third Party Advisory
- www.oracle.com/security-alerts/cpuoct2021.html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-20270
- github.com/pygments/pygments/commit/f91804ff4772e3ab41f46e28d370f57898700333
- github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2021-140.yaml
- nvd.nist.gov/vuln/detail/CVE-2021-20270
- cve.org/CVERecord?id=CVE-2021-20270
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.