CVE-2021-27291

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:*

History

06 May 2021, 14:15

Type Values Removed Values Added
References
  • (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/ -
  • (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/ -

05 May 2021, 08:15

Type Values Removed Values Added
References
  • (MLIST) https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html -

11 Apr 2021, 12:15

Type Values Removed Values Added
References
  • (DEBIAN) https://www.debian.org/security/2021/dsa-4889 -

30 Mar 2021, 00:15

Type Values Removed Values Added
References
  • (DEBIAN) https://www.debian.org/security/2021/dsa-4878 -

24 Mar 2021, 02:03

Type Values Removed Values Added
References (MLIST) https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html - (MLIST) https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html - Mailing List, Third Party Advisory
References (MISC) https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14 - (MISC) https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14 - Patch, Third Party Advisory
References (MISC) https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce - (MISC) https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce - Exploit, Third Party Advisory
CWE NVD-CWE-Other
CPE cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : 5.0
v3 : 7.5

19 Mar 2021, 21:15

Type Values Removed Values Added
References
  • (MLIST) https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html -

17 Mar 2021, 13:15

Type Values Removed Values Added
New CVE

Information

Published : 2021-03-17 13:15

Updated : 2021-05-06 23:15


NVD link : CVE-2021-27291

Mitre link : CVE-2021-27291


JSON object : View

Products Affected

pygments

  • pygments