{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-20270","published":"2021-03-23T17:15:13.827000Z","last_modified":"2026-06-17T03:33:34.817000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-835"],"cpes":[{"criteria":"cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:*","part":"a","vendor":"pygments","product":"pygments","version_start_including":"1.5","version_end_including":"2.7.3"},{"criteria":"cpe:2.3:a:redhat:openshift_container_platform:3.11:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"openshift_container_platform","version":"3.11"},{"criteria":"cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"openshift_container_platform","version":"4.0"},{"criteria":"cpe:2.3:a:redhat:openstack_platform:10.0:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"openstack_platform","version":"10.0"},{"criteria":"cpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"software_collections"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux","version":"7.0"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux","version":"8.0"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"33"},{"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"9.0"},{"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"10.0"}],"cpes_truncated":false,"vendors":["pygments","redhat","fedoraproject","debian"],"products":["pygments/pygments","redhat/openshift_container_platform","redhat/openstack_platform","redhat/software_collections","redhat/enterprise_linux","fedoraproject/fedora","debian/debian_linux"],"epss":{"score":0.02492,"percentile":0.85401,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-9w8r-397f-prfh","ecosystem":"PyPI","name":"pygments","purl":"pkg:pypi/pygments","ranges":[{"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"],"versions_truncated":false},{"advisory":"PYSEC-2021-140","ecosystem":"PyPI","name":"pygments","purl":"pkg:pypi/pygments","ranges":[{"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"],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2021-20270/","html_en":"/en/cve/CVE-2021-20270/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-20270","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-20270"},"untrusted":{"vendor_name":"Pygments","product_name":"Pygments","desc_en":"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":[],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1922136","tags":["Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4889","tags":["Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["Not Applicable","Third Party Advisory"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:11568-1","url":"https://www.suse.com/support/update/","published":"2026-08-21T00:00:00+00:00","severity":"high","exploited":false,"untrusted":{"title":"python313-Pygments-2.21.0-1.1 on GA media"}}]}