CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HHigh (7.5). EPSS 2.8% estimated probability of exploitation activity in the next 30 days. Fixed in pygments 2.7.4.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hpygments (PyPI): fixed in 2.7.4Explain CVE-2021-20270 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20270?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20270?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20270 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| pygments:pygments | from 1.5 through 2.7.3 |
| redhat:openshift_container_platform | 3.11 |
| redhat:openshift_container_platform | 4.0 |
| redhat:openstack_platform | 10.0 |
| redhat:enterprise_linux | 7.0 |
| redhat:enterprise_linux | 8.0 |
| fedoraproject:fedora | 33 |
| debian:debian_linux | 9.0 |
| debian:debian_linux | 10.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-9w8r-397f-prfh | PyPI | pygments | >=1.5 <2.7.4 | 2.7.4 |
| PYSEC-2021-140 | PyPI | pygments | >=1.5 <2.7.4 | 2.7.4 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 9 | mediawiki | 1:1.27.7-1~deb9u8 | DLA-2648-1 |
| Debian | 9 | pygments | 2.2.0+dfsg-1+deb9u1 | DLA-2590-1 |
| Debian | 10 | mediawiki | 1:1.31.14-1~deb10u1 | DSA-4889-1 |
| Debian | 10 | pygments | 2.3.1+dfsg-1+deb10u1 | DSA-4870-1 |
| Debian | 12, 13, 14 | mediawiki | 1:1.35.2-1 | DEBIAN-CVE-2021-20270 |
| Debian | 12, 13, 14 | pygments | 2.7.1+dfsg-2 | DEBIAN-CVE-2021-20270 |
| Ubuntu | 16.04:LTS | pygments | 2.1+dfsg-1ubuntu0.1 | UBUNTU-CVE-2021-20270 USN-4885-1 |
| Ubuntu | 18.04:LTS | pygments | 2.2.0+dfsg-1ubuntu0.1 | UBUNTU-CVE-2021-20270 USN-4885-1 |
| Ubuntu | 20.04:LTS | pygments | 2.3.1+dfsg-1ubuntu2.1 | UBUNTU-CVE-2021-20270 USN-4885-1 |
| Ubuntu | Pro:14.04:LTS | pygments | 1.6+dfsg-1ubuntu1.1+esm1 | UBUNTU-CVE-2021-20270 USN-4897-2 |
| Red Hat | ansible_automation_platform:4.2::el7 | automation-hub, python-galaxy-ng, python3-galaxy-ng | 0:4.2.2-1.el7pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el7 | python-bleach, python3-bleach | 0:3.3.0-1.el7pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el7 | python-bleach-allowlist, python3-bleach-allowlist | 0:1.0.3-1.el7pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el7 | python-galaxy-importer, python3-galaxy-importer | 0:0.2.15-1.el7pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el7 | python-pulp-ansible, python3-pulp-ansible | 1:0.5.6-1.el7pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el7 | python3-django | 0:2.2.18-1.el7pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el8 | automation-hub, python-galaxy-ng, python3-galaxy-ng | 0:4.2.2-1.el8pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el8 | python-bleach, python3-bleach | 0:3.3.0-1.el8pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el8 | python-bleach-allowlist, python3-bleach-allowlist | 0:1.0.3-1.el8pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el8 | python-galaxy-importer, python3-galaxy-importer | 0:0.2.15-1.el8pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el8 | python-pulp-ansible, python3-pulp-ansible | 1:0.5.6-1.el8pc | RHSA-2021:0781 |
| Red Hat | ansible_automation_platform:4.2::el8 | python3-django | 0:2.2.18-1.el8pc | RHSA-2021:0781 |
| 59 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 4 more | python-Pygments | 2.6.1-7.7.1 | SUSE-SU-2021:3473-1 |
| SUSE | Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Package Hub 15 SP2 and 3 more | python-Pygments | 2.2.0-4.6.1 | SUSE-SU-2021:1500-1 |
| openSUSE | Leap 15.2 | python-Pygments | 2.6.1-lp152.5.9.1 | openSUSE-SU-2021:1402-1 |
| openSUSE | Tumbleweed | python-Pygments | 2.21.0-1.1 | openSUSE-SU-2026:11568-1 |
| AlmaLinux | 8 | babel, python2-babel | 2.5.1-10.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| AlmaLinux | 8 | python-nose-docs | 1.3.7-31.module_el8.5.0+2569+5c5719bc | ALSA-2021:4151 |
| AlmaLinux | 8 | python-nose-docs | 1.3.7-31.module_el8.6.0+2781+fed64c13 | ALSA-2021:4150 |
| AlmaLinux | 8 | python-sqlalchemy-doc | 1.3.2-2.module_el8.5.0+2569+5c5719bc | ALSA-2021:4151 |
| AlmaLinux | 8 | python-sqlalchemy-doc | 1.3.2-2.module_el8.6.0+2781+fed64c13 | ALSA-2021:4150 |
| AlmaLinux | 8 | python2-Cython | 0.28.1-7.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| AlmaLinux | 8 | python2-PyMySQL | 0.8.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| AlmaLinux | 8 | python2-attrs | 17.4.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| AlmaLinux | 8 | python2-backports | 1.0-16.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| AlmaLinux | 8 | python2-backports-ssl_match_hostname | 3.5.0.1-12.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| AlmaLinux | 8 | python2-bson, python2-pymongo, python2-pymongo-gridfs | 3.7.0-1.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| AlmaLinux | 8 | python2-chardet | 3.0.4-10.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| 56 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | Cython | 0:0.28.1-7.module+el8.4.0+403+9ae17a31 | RLSA-2021:4151 |
| Rocky Linux | 8 | Cython | 0:0.28.1-7.module+el8.5.0+706+735ec4b3 | RLSA-2021:4151 |
| Rocky Linux | 8 | PyYAML | 0:3.12-16.module+el8.4.0+403+9ae17a31 | RLSA-2021:4151 |
| Rocky Linux | 8 | PyYAML | 0:3.12-16.module+el8.5.0+706+735ec4b3 | RLSA-2021:4151 |
| Rocky Linux | 8 | babel | 0:2.5.1-10.module+el8.5.0+706+735ec4b3 | RLSA-2021:4151 |
| Rocky Linux | 8 | numpy | 1:1.14.2-16.module+el8.4.0+403+9ae17a31 | RLSA-2021:4151 |
| Rocky Linux | 8 | numpy | 1:1.14.2-16.module+el8.5.0+706+735ec4b3 | RLSA-2021:4151 |
| Rocky Linux | 8 | pytest | 0:3.4.2-13.module+el8.4.0+403+9ae17a31 | RLSA-2021:4151 |
| Rocky Linux | 8 | pytest | 0:3.4.2-13.module+el8.5.0+706+735ec4b3 | RLSA-2021:4151 |
| Rocky Linux | 8 | python-PyMySQL | 0:0.10.1-2.module+el8.4.0+574+843c4898 | RLSA-2021:4150 |
| Rocky Linux | 8 | python-PyMySQL | 0:0.10.1-2.module+el8.4.0+597+ddf0ddea | RLSA-2021:4150 |
| Rocky Linux | 8 | python-PyMySQL | 0:0.8.0-10.module+el8.3.0+120+426d8baf | RLSA-2021:4151 |
| 60 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.14, v3.15, v3.16 and 8 more | py3-pygments | 2.7.4-r0 | ALPINE-CVE-2021-20270 |
| Azure Linux | 2 | python-pygments | 2.4.2-7 | AZL-6811 |
| Azure Linux | 3 | python-pygments | 2.7.4-1 | AZL-35137 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
In OpenShift Container Platform 3.11, the vulnerable version of python-pygments is embedded in the google-cloud-sdk package, which is shipped in the openshift-ansible container (aos3-installation-container). As the access to the openshift-ansible container is restricted only to cluster administrators, this component is affected but with a Low impact. The google-cloud-sdk package was shipped in OpenShift Container Platform 4.1, which is End of Life.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Automation Hub 4.2 for RHEL 7 | automation-hub-0:4.2.2-1.el7pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python3-django-0:2.2.18-1.el7pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-bleach-0:3.3.0-1.el7pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-bleach-allowlist-0:1.0.3-1.el7pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-galaxy-importer-0:0.2.15-1.el7pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-galaxy-ng-0:4.2.2-1.el7pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-pulp-ansible-1:0.5.6-1.el7pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | automation-hub-0:4.2.2-1.el8pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python3-django-0:2.2.18-1.el8pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-bleach-0:3.3.0-1.el8pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-bleach-allowlist-0:1.0.3-1.el8pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-galaxy-importer-0:0.2.15-1.el8pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-galaxy-ng-0:4.2.2-1.el8pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Enterprise Linux 6 | python-pygments | Not affected | |
| Red Hat Enterprise Linux 7 | python-pygments | Not affected | |
| Red Hat Enterprise Linux 7 | resource-agents | Out of support scope | |
| Red Hat Enterprise Linux 9 | python-pygments | Not affected | |
| Red Hat OpenShift Container Platform 3.11 | google-cloud-sdk | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | google-cloud-sdk | Out of support scope | |
| Red Hat OpenStack Platform 10 (Newton) | python-pygments | Out of support scope | |
| 12 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20270.