Resource management error in pygments - CVE-2021-27291
Published: March 30, 2021
Vulnerability identifier: #VU51776
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-27291
CWE-ID: CWE-399
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (ReDoS) attack.
The vulnerability exists due to improper management of internal resources within the application. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDoS) attack.
Affected software
pygments
PowerStore T
Ansible Automation Platform
Cloud Pak for Security (CP4S)
MediaWiki
mediawiki (Debian package)
pygments (Debian package)
SUSE Linux Enterprise Module for Packagehub Subpackages
python3-pygments (Ubuntu package)
python-pygments (Ubuntu package)
python-galaxy-importer (Red Hat package)
python-pulp-ansible (Red Hat package)
python-bleach-allowlist (Red Hat package)
python3-Pygments
python2-Pygments
python3-pygments
python-pygments
python-Pygments
python-pygments-help
python2-pygments
python-bleach (Red Hat package)
resource-agents (Red Hat package)
automation-hub (Red Hat package)
python-galaxy-ng (Red Hat package)
SUSE CaaS Platform
SUSE Enterprise Storage
Fedora
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
SUSE Linux Enterprise Module for Public Cloud
Ubuntu
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Basesystem
openEuler
PowerStore T
Ansible Automation Platform
Cloud Pak for Security (CP4S)
MediaWiki
mediawiki (Debian package)
pygments (Debian package)
SUSE Linux Enterprise Module for Packagehub Subpackages
python3-pygments (Ubuntu package)
python-pygments (Ubuntu package)
python-galaxy-importer (Red Hat package)
python-pulp-ansible (Red Hat package)
python-bleach-allowlist (Red Hat package)
python3-Pygments
python2-Pygments
python3-pygments
python-pygments
python-Pygments
python-pygments-help
python2-pygments
python-bleach (Red Hat package)
resource-agents (Red Hat package)
automation-hub (Red Hat package)
python-galaxy-ng (Red Hat package)
SUSE CaaS Platform
SUSE Enterprise Storage
Fedora
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
SUSE Linux Enterprise Module for Public Cloud
Ubuntu
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Basesystem
openEuler
How to mitigate CVE-2021-27291
Install updates from vendor's website.
pygments - update to 2.7.4
Cloud Pak for Security (CP4S) - update to 1.10.7.0
MediaWiki - addressed in versions 1.31.13, 1.35.2
mediawiki (Debian package) - update to 1:1.31.14-1~deb10u1
pygments (Debian package) - update to 2.3.1+dfsg-1+deb10u2
python3-pygments (Ubuntu package) - addressed in versions Ubuntu Pro, 2.1+dfsg-1ubuntu0.2, 2.2.0+dfsg-1ubuntu0.2, 2.3.1+dfsg-4ubuntu0.2, 2.3.1+dfsg-1ubuntu2.2
python-pygments (Ubuntu package) - addressed in versions Ubuntu Pro, 2.1+dfsg-1ubuntu0.2, 2.2.0+dfsg-1ubuntu0.2, 2.3.1+dfsg-1ubuntu2.2
python-galaxy-importer (Red Hat package) - addressed in versions 0.2.15-1.el7pc, 0.2.15-1.el8pc
python-pulp-ansible (Red Hat package) - addressed in versions 0.5.6-1.el7pc, 0.5.6-1.el8pc
python-bleach-allowlist (Red Hat package) - addressed in versions 1.0.3-1.el7pc, 1.0.3-1.el8pc
python3-Pygments - addressed in versions 2.2.0-4.9.1, 2.4.2-10.7.1, 2.6.1-4.3.1, 2.6.1-7.10.1
python2-Pygments - update to 2.2.0-4.9.1
python3-pygments - update to 2.4.2-1.el7
python-pygments - addressed in versions 2.4.2-9.fc32, 2.6.1-6.fc33
python-Pygments - update to 2.4.2-10.7.1
python-pygments-help - update to 2.5.2-3
python2-pygments - update to 2.5.2-3
python3-pygments - update to 2.5.2-3
python-pygments - update to 2.5.2-3
python-bleach (Red Hat package) - addressed in versions 3.3.0-1.el7pc, 3.3.0-1.el8pc
PowerStore T - update to 3.5.0.1-2083289
resource-agents (Red Hat package) - update to 4.1.1-98.el8
automation-hub (Red Hat package) - addressed in versions 4.2.2-1.el7pc, 4.2.2-1.el8pc
python-galaxy-ng (Red Hat package) - addressed in versions 4.2.2-1.el7pc, 4.2.2-1.el8pc
Cloud Pak for Security (CP4S) - update to 1.10.7.0
MediaWiki - addressed in versions 1.31.13, 1.35.2
mediawiki (Debian package) - update to 1:1.31.14-1~deb10u1
pygments (Debian package) - update to 2.3.1+dfsg-1+deb10u2
python3-pygments (Ubuntu package) - addressed in versions Ubuntu Pro, 2.1+dfsg-1ubuntu0.2, 2.2.0+dfsg-1ubuntu0.2, 2.3.1+dfsg-4ubuntu0.2, 2.3.1+dfsg-1ubuntu2.2
python-pygments (Ubuntu package) - addressed in versions Ubuntu Pro, 2.1+dfsg-1ubuntu0.2, 2.2.0+dfsg-1ubuntu0.2, 2.3.1+dfsg-1ubuntu2.2
python-galaxy-importer (Red Hat package) - addressed in versions 0.2.15-1.el7pc, 0.2.15-1.el8pc
python-pulp-ansible (Red Hat package) - addressed in versions 0.5.6-1.el7pc, 0.5.6-1.el8pc
python-bleach-allowlist (Red Hat package) - addressed in versions 1.0.3-1.el7pc, 1.0.3-1.el8pc
python3-Pygments - addressed in versions 2.2.0-4.9.1, 2.4.2-10.7.1, 2.6.1-4.3.1, 2.6.1-7.10.1
python2-Pygments - update to 2.2.0-4.9.1
python3-pygments - update to 2.4.2-1.el7
python-pygments - addressed in versions 2.4.2-9.fc32, 2.6.1-6.fc33
python-Pygments - update to 2.4.2-10.7.1
python-pygments-help - update to 2.5.2-3
python2-pygments - update to 2.5.2-3
python3-pygments - update to 2.5.2-3
python-pygments - update to 2.5.2-3
python-bleach (Red Hat package) - addressed in versions 3.3.0-1.el7pc, 3.3.0-1.el8pc
PowerStore T - update to 3.5.0.1-2083289
resource-agents (Red Hat package) - update to 4.1.1-98.el8
automation-hub (Red Hat package) - addressed in versions 4.2.2-1.el7pc, 4.2.2-1.el8pc
python-galaxy-ng (Red Hat package) - addressed in versions 4.2.2-1.el7pc, 4.2.2-1.el8pc
External References
Related Security Bulletins
- Infinite loop in pygments
- Debian update for pygments
- Multiple vulnerabilities in MediaWiki
- Debian update for mediawiki
- Multiple vulnerabilities in Red Hat Ansible Automation Platform
- SUSE update for python-Pygments
- SUSE update for python-Pygments
- SUSE update for python-Pygments
- SUSE update for python-Pygments
- Ubuntu update for pygments
- Red Hat Enterprise Linux 8 update for resource-agents
- Ubuntu update for pygments
- Fedora EPEL 7 update for python3-pygments
- Multiple vulnerabilities in Dell PowerStore Family
- Multiple vulnerabilities in IBM Cloud Pak for Security (CP4S)
- openEuler 20.03 LTS SP1 update for python-pygments
- Red Hat Enterprise Linux 8 update for the python36:3.6 module
- Red Hat Enterprise Linux 8 update for the python27:2.7 module
- Fedora 32 update for python-pygments
- Fedora 33 update for python-pygments