{"id":"CVE-2021-20270","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":["GHSA-9w8r-397f-prfh","PYSEC-2021-140"],"modified":"2026-04-16T04:37:14.085378204Z","published":"2021-03-23T17:15:13.827Z","related":["ALSA-2021:4139","ALSA-2021:4150","ALSA-2021:4151","SUSE-SU-2021:1500-1","SUSE-SU-2021:3473-1","openSUSE-SU-2021:1402-1","openSUSE-SU-2024:13208-1"],"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-4889"},{"type":"ADVISORY","url":"https://www.oracle.com/security-alerts/cpuoct2021.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1922136"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20270.json","unresolved_ranges":[{"events":[{"introduced":"1.5"},{"last_affected":"2.7.3"}]},{"events":[{"introduced":"0"},{"last_affected":"3.11"}]},{"events":[{"introduced":"0"},{"last_affected":"4.0"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"33"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}