{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-27291","published":"2021-03-17T13:15:15.137000Z","last_modified":"2026-06-17T03:44:37.283000Z","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-1333"],"cpes":[{"criteria":"cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:*","part":"a","vendor":"pygments","product":"pygments","version_start_including":"1.1","version_end_excluding":"2.7.4"},{"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"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"32"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"33"}],"cpes_truncated":false,"vendors":["pygments","debian","fedoraproject"],"products":["pygments/pygments","debian/debian_linux","fedoraproject/fedora"],"epss":{"score":0.03906,"percentile":0.91065,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-pq64-v7f5-gqh8","ecosystem":"PyPI","name":"pygments","purl":"pkg:pypi/pygments","ranges":[{"introduced":"1.1","fixed":"2.7.4"}],"versions":["1.1","1.1.1","1.2","1.2.1","1.2.2","1.3","1.3.1","1.4","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-141","ecosystem":"PyPI","name":"pygments","purl":"pkg:pypi/pygments","ranges":[{"introduced":"1.1","fixed":"2.7.4"}],"versions":["1.1","1.1.1","1.2","1.2.1","1.2.2","1.3","1.3.1","1.4","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-27291/","html_en":"/en/cve/CVE-2021-27291/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-27291","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-27291"},"untrusted":{"vendor_name":"Pygments","product_name":"Pygments","desc_en":"In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. By crafting malicious input, an attacker can cause a denial of service.","affected":[],"references":[{"url":"https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","tags":["Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html","tags":["Mailing List","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://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/","tags":[]},{"url":"https://www.debian.org/security/2021/dsa-4878","tags":["Third Party Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4889","tags":["Third Party Advisory"]}]}}