CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (7.8). EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in babel 2.9.1.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hbabel (PyPI): fixed in 2.9.1Explain CVE-2021-42771 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-42771?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-42771?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-42771 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 |
|---|---|
| pocoo:babel | before 2.9.1 |
| debian:debian_linux | 10.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-h4m5-qpfp-3mpv | PyPI | babel | <2.9.1 | 2.9.1 |
| PYSEC-2021-421 | PyPI | babel | <2.9.1 | 2.9.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 9 | python-babel | 2.3.4+dfsg.1-2+deb9u1 | DLA-2790-1 |
| Debian | 10 | python-babel | 2.6.0+dfsg.1-1+deb10u1 | DSA-5018-1 |
| Debian | 12, 13, 14 | python-babel | 2.8.0+dfsg.1-7 | DEBIAN-CVE-2021-42771 |
| Red Hat | enterprise_linux:8::appstream | Cython, python2-Cython, Cython-debugsource and 1 more | 0:0.28.1-7.module+el8.1.0+3111+de3f2d8e | RHSA-2021:4151 |
| Red Hat | enterprise_linux:8::appstream | Cython, python38-Cython, Cython-debugsource and 1 more | 0:0.29.14-4.module+el8.4.0+8888+89bc7e79 | RHSA-2021:4162 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python2-pyyaml, PyYAML-debugsource and 1 more | 0:3.12-16.module+el8.1.0+3111+de3f2d8e | RHSA-2021:4151 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python38-pyyaml, PyYAML-debugsource and 1 more | 0:5.4.1-1.module+el8.5.0+10721+14d8e0d5 | RHSA-2021:4162 |
| Red Hat | enterprise_linux:8::appstream | babel, python2-babel | 0:2.5.1-10.module+el8.5.0+11014+88fc0d0b | RHSA-2021:4151 |
| Red Hat | enterprise_linux:8::appstream | babel, python3-babel | 0:2.5.1-7.el8 | RHSA-2021:4201 |
| Red Hat | enterprise_linux:8::appstream | babel, python38-babel | 0:2.7.0-11.module+el8.5.0+11015+9c1c7c42 | RHSA-2021:4162 |
| Red Hat | enterprise_linux:8::appstream | mod_wsgi, python38-mod_wsgi | 0:4.6.8-3.module+el8.4.0+8888+89bc7e79 | RHSA-2021:4162 |
| Red Hat | enterprise_linux:8::appstream | numpy, python2-numpy, numpy-debugsource and 3 more | 1:1.14.2-16.module+el8.4.0+9406+221a4565 | RHSA-2021:4151 |
| Red Hat | enterprise_linux:8::appstream | numpy, python38-numpy, numpy-debugsource and 3 more | 0:1.17.3-6.module+el8.5.0+12205+a865257a | RHSA-2021:4162 |
| Red Hat | enterprise_linux:8::appstream | pytest, python2-pytest | 0:3.4.2-13.module+el8.1.0+3111+de3f2d8e | RHSA-2021:4151 |
| Red Hat | enterprise_linux:8::appstream | python-PyMySQL, python2-PyMySQL | 0:0.8.0-10.module+el8.1.0+3111+de3f2d8e | RHSA-2021:4151 |
| 79 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 7 more | python-Babel | 2.5.1-150000.3.3.1 | SUSE-SU-2022:3590-1 |
| SUSE | HPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8 | python-Babel | 2.3.4-4.3.1 | SUSE-SU-2022:0029-1 |
| SUSE | Linux Enterprise Micro 5.0, Linux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP2 and 3 more | python-Babel | 2.8.0-3.3.1 | SUSE-SU-2021:3945-1 |
| SUSE | Linux Enterprise Module for Public Cloud 12 | python-Babel | 2.5.3-4.8.1 | SUSE-SU-2021:4161-1 |
| SUSE | OpenStack Cloud 9, OpenStack Cloud Crowbar 9 | python-Babel | 2.5.1-3.3.1 | SUSE-SU-2022:0028-1 |
| openSUSE | Leap 15.2 | python-Babel, python-Babel-doc | 2.8.0-lp152.2.3.1 | openSUSE-SU-2021:1553-1 |
| openSUSE | Leap 15.3 | python-Babel, python-Babel-doc | 2.8.0-3.3.1 | openSUSE-SU-2021:3945-1 |
| openSUSE | Tumbleweed | python-Babel | 2.14.0-1.5 | openSUSE-SU-2024:14127-1 |
| openSUSE | Tumbleweed | python-Babel | 2.18.0-1.4 | openSUSE-SU-2026:11986-1 |
| openSUSE | Tumbleweed | python-Babel | 2.9.1-3.1 | openSUSE-SU-2024:11602-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-sqlalchemy-doc | 1.3.2-2.module_el8.5.0+2569+5c5719bc | ALSA-2021:4151 |
| 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 |
| AlmaLinux | 8 | python2-coverage | 4.5.1-4.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| AlmaLinux | 8 | python2-dns | 1.15.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2021:4151 |
| 64 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 | Cython | 0:0.29.14-4.module+el8.4.0+570+c2eaf144 | RLSA-2021:4162 |
| 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 | PyYAML | 0:5.4.1-1.module+el8.4.0+574+843c4898 | RLSA-2021:4162 |
| Rocky Linux | 8 | PyYAML | 0:5.4.1-1.module+el8.5.0+672+ab6eb015 | RLSA-2021:4162 |
| Rocky Linux | 8 | babel | 0:2.5.1-10.module+el8.5.0+706+735ec4b3 | RLSA-2021:4151 |
| Rocky Linux | 8 | babel | 0:2.5.1-7.el8 | RLSA-2021:4201 |
| Rocky Linux | 8 | babel | 0:2.7.0-11.module+el8.5.0+672+ab6eb015 | RLSA-2021:4162 |
| Rocky Linux | 8 | mod_wsgi | 0:4.6.8-3.module+el8.4.0+570+c2eaf144 | RLSA-2021:4162 |
| Rocky Linux | 8 | numpy | 0:1.17.3-6.module+el8.5.0+672+ab6eb015 | RLSA-2021:4162 |
| 96 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.16, v3.17, v3.18 and 6 more | py3-babel | 2.9.1-r0 | ALPINE-CVE-2021-42771 |
| Azure Linux | 2 | babel | 2.9.1-1 | AZL-6325 |
From the distributions' data via OSV.dev: the Debian Security Tracker; 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 · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
It is rather uncommon for applications to use Babel.Locale() with an untrusted attacker-controlled language argument. A static language abbreviation string (e.g. "en") is most commonly used instead. For this reason, this flaw has been rated as having a security impact of Moderate.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | python27:2.7-8050020210811095446.3e7ace8b | Fixed 2021-11-09 | RHSA-2021:4151 |
| Red Hat Enterprise Linux 8 | python38:3.8-8050020210811101222.e3d35cca | Fixed 2021-11-09 | RHSA-2021:4162 |
| Red Hat Enterprise Linux 8 | python38-devel:3.8-8050020210811101222.e3d35cca | Fixed 2021-11-09 | RHSA-2021:4162 |
| Red Hat Enterprise Linux 8 | babel-0:2.5.1-7.el8 | Fixed 2021-11-09 | RHSA-2021:4201 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | python27-babel-0:0.9.6-10.el7 | Fixed 2021-08-24 | RHSA-2021:3252 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | python27-python-0:2.7.18-3.el7 | Fixed 2021-08-24 | RHSA-2021:3252 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | python27-python-jinja2-0:2.6-16.el7 | Fixed 2021-08-24 | RHSA-2021:3252 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | python27-python-pygments-0:1.5-5.el7 | Fixed 2021-08-24 | RHSA-2021:3252 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-python38-babel-0:2.7.0-12.el7 | Fixed 2021-08-24 | RHSA-2021:3254 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-python38-python-0:3.8.11-2.el7 | Fixed 2021-08-24 | RHSA-2021:3254 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-python38-python-cryptography-0:2.8-5.el7 | Fixed 2021-08-24 | RHSA-2021:3254 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-python38-python-jinja2-0:2.10.3-6.el7 | Fixed 2021-08-24 | RHSA-2021:3254 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-python38-python-lxml-0:4.4.1-7.el7 | Fixed 2021-08-24 | RHSA-2021:3254 |
| Red Hat Enterprise Linux 6 | babel | Out of support scope | |
| Red Hat Enterprise Linux 7 | babel | Out of support scope | |
| Red Hat Enterprise Linux 9 | babel | Not affected | |
| Red Hat OpenStack Platform 10 (Newton) | babel | Out of support scope | |
| Red Hat OpenStack Platform 13 (Queens) | babel | Out of support scope | |
| Red Hat Quay 3 | quay/quay-rhel8 | Affected | |
| Red Hat Storage 3 | babel | Will not fix | |
| 13 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-42771.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.