{"id":"CVE-2021-27291","state":"PUBLISHED","title":"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 wors","description":"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.","publishedAt":"2021-03-17T12:31:15.000Z","updatedAt":"2024-08-03T20:48:16.368Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce","https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html","https://www.debian.org/security/2021/dsa-4878","https://www.debian.org/security/2021/dsa-4889","https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/","https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:48:15.637Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/27xxx/CVE-2021-27291.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-27291","state":"PUBLISHED","datePublished":"2021-03-17T12:31:15.000Z","dateUpdated":"2024-08-03T20:48:16.368Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2021-02-16T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce","tags":["x_refsource_MISC"]},{"url":"https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html","name":"[debian-lts-announce] 20210319 [SECURITY] [DLA 2600-1] pygments security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2021/dsa-4878","name":"DSA-4878","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"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.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/","name":"FEDORA-2021-166dfc62b2","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/","name":"FEDORA-2021-3f975f68c8","tags":["vendor-advisory","x_refsource_FEDORA"]},{"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"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2021-05-06T22:06:22.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-27291","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce","refsource":"MISC","url":"https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce"},{"name":"https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","refsource":"MISC","url":"https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14"},{"name":"[debian-lts-announce] 20210319 [SECURITY] [DLA 2600-1] pygments security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html"},{"name":"DSA-4878","refsource":"DEBIAN","url":"https://www.debian.org/security/2021/dsa-4878"},{"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":"FEDORA-2021-166dfc62b2","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/"},{"name":"FEDORA-2021-3f975f68c8","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/"},{"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"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html","name":"[debian-lts-announce] 20210319 [SECURITY] [DLA 2600-1] pygments security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.debian.org/security/2021/dsa-4878","name":"DSA-4878","tags":["vendor-advisory","x_refsource_DEBIAN","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.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/","name":"FEDORA-2021-166dfc62b2","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/","name":"FEDORA-2021-3f975f68c8","tags":["vendor-advisory","x_refsource_FEDORA","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"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T20:48:16.368Z"}}]}}}