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:*:*:*:*:*:*:*:*

Configuration 2 (hide)

OR cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

Configuration 3 (hide)

OR cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*

History

23 May 2022, 22:35

Type Values Removed Values Added
CPE cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
References
  • (MLIST) https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html - Mailing List, Third Party Advisory
References (MLIST) https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html - (MLIST) https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html - Mailing List, Third Party Advisory
References (DEBIAN) https://www.debian.org/security/2021/dsa-4878 - (DEBIAN) https://www.debian.org/security/2021/dsa-4878 - Third Party Advisory
References (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/ - (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/ - Mailing List, Third Party Advisory
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/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/ - Mailing List, Third Party Advisory
References (DEBIAN) https://www.debian.org/security/2021/dsa-4889 - (DEBIAN) https://www.debian.org/security/2021/dsa-4889 - Third Party Advisory
First Time Fedoraproject
Debian debian Linux
Debian
Fedoraproject fedora

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 : 2022-05-23 22:35


NVD link : CVE-2021-27291

Mitre link : CVE-2021-27291


JSON object : View

Products Affected

fedoraproject

  • fedora

debian

  • debian_linux

pygments

  • pygments