{"id":"CVE-2021-20270","state":"PUBLISHED","title":"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","description":"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.","publishedAt":"2021-03-23T16:40:22.000Z","updatedAt":"2024-08-03T17:37:23.034Z","severity":null,"assigner":"redhat","products":["n/a python-pygments"],"affected":[{"vendor":"n/a","product":"python-pygments","versions":[{"version":"python-pygments 2.7.4","status":"affected"}]}],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=1922136","https://www.debian.org/security/2021/dsa-4889","https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html","https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html","https://www.oracle.com/security-alerts/cpuoct2021.html"],"weaknesses":["CWE-835"],"ingestedAt":"2026-10-29T19:47:55.610Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/20xxx/CVE-2021-20270.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-20270","state":"PUBLISHED","datePublished":"2021-03-23T16:40:22.000Z","dateUpdated":"2024-08-03T17:37:23.034Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2020-12-17T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"python-pygments","versions":[{"version":"python-pygments 2.7.4","status":"affected"}]}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1922136","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2021/dsa-4889","name":"DSA-4889","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html","name":"[debian-lts-announce] 20210505 [SECURITY] [DLA 2648-1] mediawiki security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html","name":"[debian-lts-announce] 20210506 [SECURITY] [DLA 2648-2] mediawiki regression update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-835","description":"CWE-835","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2021-10-20T10:40:34.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"secalert@redhat.com","ID":"CVE-2021-20270","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"python-pygments","version":{"version_data":[{"version_value":"python-pygments 2.7.4"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-835"}]}]},"references":{"reference_data":[{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=1922136","refsource":"MISC","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1922136"},{"name":"DSA-4889","refsource":"DEBIAN","url":"https://www.debian.org/security/2021/dsa-4889"},{"name":"[debian-lts-announce] 20210505 [SECURITY] [DLA 2648-1] mediawiki security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html"},{"name":"[debian-lts-announce] 20210506 [SECURITY] [DLA 2648-2] mediawiki regression update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html"},{"name":"https://www.oracle.com/security-alerts/cpuoct2021.html","refsource":"MISC","url":"https://www.oracle.com/security-alerts/cpuoct2021.html"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1922136","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.debian.org/security/2021/dsa-4889","name":"DSA-4889","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html","name":"[debian-lts-announce] 20210505 [SECURITY] [DLA 2648-1] mediawiki security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html","name":"[debian-lts-announce] 20210506 [SECURITY] [DLA 2648-2] mediawiki regression update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:37:23.034Z"}}]}}}