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 3.9% 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-27291 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-27291?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-27291?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-27291 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.1 before 2.7.4 |
| debian:debian_linux | 9.0 |
| debian:debian_linux | 10.0 |
| fedoraproject:fedora | 32 |
| fedoraproject:fedora | 33 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-pq64-v7f5-gqh8 | PyPI | pygments | >=1.1 <2.7.4 | 2.7.4 |
| PYSEC-2021-141 | PyPI | pygments | >=1.1 <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+deb9u2 | DLA-2600-1 |
| Debian | 10 | mediawiki | 1:1.31.14-1~deb10u1 | DSA-4889-1 |
| Debian | 10 | pygments | 2.3.1+dfsg-1+deb10u2 | DSA-4878-1 |
| Debian | 12, 13, 14 | mediawiki | 1:1.35.2-1 | DEBIAN-CVE-2021-27291 |
| Debian | 12, 13, 14 | pygments | 2.7.1+dfsg-2.1 | DEBIAN-CVE-2021-27291 |
| Ubuntu | 16.04:LTS | pygments | 2.1+dfsg-1ubuntu0.2 | UBUNTU-CVE-2021-27291 USN-4897-1 |
| Ubuntu | 16.04:LTS, 18.04:LTS, 20.04:LTS and 5 more | eric | no fix listed | UBUNTU-CVE-2021-27291 |
| Ubuntu | 18.04:LTS | pygments | 2.2.0+dfsg-1ubuntu0.2 | UBUNTU-CVE-2021-27291 USN-4897-1 |
| Ubuntu | 20.04:LTS | pygments | 2.3.1+dfsg-1ubuntu2.2 | UBUNTU-CVE-2021-27291 USN-4897-1 |
| Ubuntu | Pro:14.04:LTS | pygments | 1.6+dfsg-1ubuntu1.1+esm1 | UBUNTU-CVE-2021-27291 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.10.1 | SUSE-SU-2021:3840-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.9.1 | SUSE-SU-2021:3841-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP3 | python-Pygments | 2.6.1-4.3.1 | SUSE-SU-2021:3839-1 |
| SUSE | Linux Enterprise Module for Public Cloud 12 | python-Pygments | 2.4.2-10.7.1 | SUSE-SU-2021:3814-1 |
| openSUSE | Leap 15.2 | python-Pygments | 2.6.1-lp152.5.12.1 | openSUSE-SU-2021:1521-1 |
| openSUSE | Leap 15.3 | python-Pygments | 2.2.0-4.9.1 | openSUSE-SU-2021:3841-1 |
| openSUSE | Leap 15.3 | python-Pygments | 2.6.1-4.3.1 | openSUSE-SU-2021:3839-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.11 | py3-pygments | 2.5.2-r1 | ALPINE-CVE-2021-27291 |
| Alpine | v3.12 | py3-pygments | 2.6.1-r1 | ALPINE-CVE-2021-27291 |
| Azure Linux | 2 | python-pygments | 2.4.2-7 | AZL-6812 |
| Azure Linux | 3 | python-pygments | 2.7.4-1 | AZL-35138 |
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.
| 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 Automation Hub 4.2 for RHEL 8 | python-pulp-ansible-1:0.5.6-1.el8pc | Fixed 2021-03-09 | RHSA-2021:0781 |
| Red Hat Enterprise Linux 8 | python36:3.6-8050020210811103506.982725ab | Fixed 2021-11-09 | RHSA-2021:4150 |
| Red Hat Enterprise Linux 8 | python27:2.7-8050020210811095446.3e7ace8b | Fixed 2021-11-09 | RHSA-2021:4151 |
| Red Hat Enterprise Linux 6 | python-pygments | Out of support scope | |
| Red Hat Enterprise Linux 7 | python-pygments | Out of support scope | |
| Red Hat Enterprise Linux 7 | resource-agents | Out of support scope | |
| Red Hat OpenStack Platform 10 (Newton) | python-pygments | Out of support scope | |
| 9 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-27291.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.