{"id":"PYSEC-2021-140","details":"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.","aliases":["CVE-2021-20270","GHSA-9w8r-397f-prfh"],"modified":"2023-11-01T05:42:43.237133Z","published":"2021-03-23T17:15:00Z","references":[{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1922136"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-4889"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9w8r-397f-prfh"}],"affected":[{"package":{"name":"pygments","ecosystem":"PyPI","purl":"pkg:pypi/pygments"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.5"},{"fixed":"2.7.4"}]}],"versions":["1.5","1.6","1.6rc1","2.0","2.0.1","2.0.2","2.0rc1","2.1","2.1.1","2.1.2","2.1.3","2.2.0","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.5.1","2.5.2","2.6.0","2.6.1","2.7.0","2.7.1","2.7.2","2.7.3"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/pygments/PYSEC-2021-140.yaml"}}],"schema_version":"1.7.3"}