Vulnerability Details : CVE-2021-27291
Potential exploit
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.
Vulnerability category: Denial of service
Products affected by CVE-2021-27291
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-27291
2.52%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 84 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-27291
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST |
References for CVE-2021-27291
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WSLD67LFGXOX2K5YNESSWAS4AGZIJTUQ/
[SECURITY] Fedora 33 Update: python-pygments-2.6.1-6.fc33 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GSJRFHALQ7E3UV4FFMFU2YQ6LUDHAI55/
[SECURITY] Fedora 32 Update: python-pygments-2.4.2-9.fc32 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://www.debian.org/security/2021/dsa-4878
Debian -- Security Information -- DSA-4878-1 pygmentsThird Party Advisory
-
https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html
[SECURITY] [DLA 2648-1] mediawiki security updateMailing List;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2021/03/msg00024.html
[SECURITY] [DLA 2600-1] pygments security updateMailing List;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html
[SECURITY] [DLA 2648-2] mediawiki regression updateMailing List;Third Party Advisory
-
https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce
cve-2021-27291 · GitHubExploit;Third Party Advisory
-
https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14
Fix several exponential/cubic complexity regexes found by Ben Caller/… · pygments/pygments@2e7e8c4 · GitHubPatch;Third Party Advisory
-
https://www.debian.org/security/2021/dsa-4889
Debian -- Security Information -- DSA-4889-1 mediawikiThird Party Advisory
Jump to