CVE-2021-27291
Detail
Modified
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0 Severity and Vector Strings:
Vector:
(AV:N/AC:L/Au:N/C:N/I:N/A:P)
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-1333
Inefficient Regular Expression Complexity
NIST
Change History
12 change records found show changes
CVE Modified by CVE 11/21/2024 12:57:45 AM
Action
Type
Old Value
New Value
Added
Reference
https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce
Added
Reference
https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14
Added
Reference
https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html
Added
Reference
https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html
Added
Reference
https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/
Added
Reference
https://www.debian.org/security/2021/dsa-4878
Added
Reference
https://www.debian.org/security/2021/dsa-4889
CVE Modified by MITRE 5/14/2024 4:38:05 AM
Action
Type
Old Value
New Value
CVE Modified by MITRE 11/06/2023 10:31:56 PM
Action
Type
Old Value
New Value
Added
Reference
MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/ [No types assigned]
Added
Reference
MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/ [No types assigned]
Removed
Reference
MITRE https://lists.fedoraproject.org/archives/list/[email protected] /message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/
Removed
Reference
MITRE https://lists.fedoraproject.org/archives/list/[email protected] /message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/
CWE Remap by NIST 8/08/2023 10:22:24 AM
Action
Type
Old Value
New Value
Changed
CWE
NVD-CWE-Other
CWE-1333
Modified Analysis by NIST 5/23/2022 6:35:48 PM
Action
Type
Old Value
New Value
Added
CPE Configuration
OR
*cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
*cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Added
CPE Configuration
OR
*cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
*cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
Changed
Reference Type
https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html No Types Assigned
https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html No Types Assigned
https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/ Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/ Mailing List, Third Party Advisory
Changed
Reference Type
https://www.debian.org/security/2021/dsa-4878 No Types Assigned
https://www.debian.org/security/2021/dsa-4878 Third Party Advisory
Changed
Reference Type
https://www.debian.org/security/2021/dsa-4889 No Types Assigned
https://www.debian.org/security/2021/dsa-4889 Third Party Advisory
CVE Modified by MITRE 5/06/2021 7:15:07 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html [No Types Assigned]
CVE Modified by MITRE 5/06/2021 10:15:08 AM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/ [No Types Assigned]
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/ [No Types Assigned]
CVE Modified by MITRE 5/05/2021 4:15:06 AM
Action
Type
Old Value
New Value
Added
Reference
https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html [No Types Assigned]
CVE Modified by MITRE 4/11/2021 8:15:14 AM
Action
Type
Old Value
New Value
Added
Reference
https://www.debian.org/security/2021/dsa-4889 [No Types Assigned]
CVE Modified by MITRE 3/29/2021 8:15:12 PM
Action
Type
Old Value
New Value
Added
Reference
https://www.debian.org/security/2021/dsa-4878 [No Types Assigned]
Initial Analysis by NIST 3/23/2021 10:03:34 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Added
CVSS V2
NIST (AV:N/AC:L/Au:N/C:N/I:N/A:P)
Added
CWE
NIST NVD-CWE-Other
Added
CPE Configuration
OR
*cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:* versions from (including) 1.1 up to (excluding) 2.7.4
Changed
Reference Type
https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce No Types Assigned
https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce Exploit, Third Party Advisory
Changed
Reference Type
https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14 No Types Assigned
https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14 Patch, Third Party Advisory
Changed
Reference Type
https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html No Types Assigned
https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html Mailing List, Third Party Advisory
CVE Modified by MITRE 3/19/2021 5:15:12 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html [No Types Assigned]
Quick Info
CVE Dictionary Entry: CVE-2021-27291 NVD
Published Date: 03/17/2021 NVD
Last Modified: 11/21/2024
Source: MITRE