Vulnerability
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.
38 advisories report this vulnerability, across 13 ecosystems.
Advisories
-
ALAS2-2023-2117
Amazon Linux 2 2017.12 - ALAS2-2023-2117: medium priority package update for python3-pygments
-
ALAS2-2023-2198
Amazon Linux 2 2017.12 - ALAS2-2023-2198: medium priority package update for python-pygments
-
ALPINE-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…
-
ALSA-2021:4139
Moderate: resource-agents security, bug fix, and enhancement update
-
ALSA-2021:4150
Moderate: python36:3.6 security and bug fix update
-
ALSA-2021:4151
Moderate: python27:2.7 security update
-
AZL-35138
CVE-2021-27291 affecting package python-pygments for versions less than 2.7.4-1
-
AZL-6812
CVE-2021-27291 affecting package python-pygments for versions less than 2.4.2-7
-
DEBIAN-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…
-
DLA-2600-1
pygments - security update
-
DLA-2648-1
mediawiki - security update
-
DSA-4878-1
pygments - security update
-
DSA-4889-1
mediawiki - security update
-
ELSA-2021-4150
ELSA-2021-4150: python36:3.6 security and bug fix update (MODERATE)
-
ELSA-2021-4151
ELSA-2021-4151: python27:2.7 security update (MODERATE)
-
ELSA-2021-9553
ELSA-2021-9553: resource-agents security update (MODERATE)
-
GHSA-pq64-v7f5-gqh8
Pygments vulnerable to Regular Expression Denial of Service (ReDoS)
-
OESA-2021-1154
python-pygments security update
-
PYSEC-2021-141
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…
-
RHSA-2021:0781
Red Hat Security Advisory: Red Hat Ansible Automation Platform 1.2.2 security and bug fix update
-
RHSA-2021:3252
Red Hat Security Advisory: python27 security update
-
RHSA-2021:4139
Red Hat Security Advisory: resource-agents security, bug fix, and enhancement update
-
RHSA-2021:4150
Red Hat Security Advisory: python36:3.6 security and bug fix update
-
RHSA-2021:4151
Red Hat Security Advisory: python27:2.7 security update
-
RHVEX-CVE-2021-27291
python-pygments: ReDoS in multiple lexers
-
RLSA-2021:4139
Moderate: resource-agents security, bug fix, and enhancement update
-
RLSA-2021:4150
Moderate: python36:3.6 security and bug fix update
-
RLSA-2021:4151
Moderate: python27:2.7 security update
-
SUSE-SU-2021:3814-1
Security update for python-Pygments
-
SUSE-SU-2021:3839-1
Security update for python-Pygments
-
SUSE-SU-2021:3840-1
Security update for python-Pygments
-
SUSE-SU-2021:3841-1
Security update for python-Pygments
-
UBUNTU-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…
-
USN-4897-1
pygments vulnerability
-
USN-4897-2
pygments vulnerabilities
-
openSUSE-SU-2021:1521-1
Security update for python-Pygments
-
openSUSE-SU-2021:3839-1
Security update for python-Pygments
-
openSUSE-SU-2021:3841-1
Security update for python-Pygments
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://lists.debian.org/debian-lts-announce/2021/05/msg00003.html
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.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://www.debian.org/security/2021/dsa-4878
- https://www.debian.org/security/2021/dsa-4889