Babel.Locale in Babel before 2.9.1 allows attackers to load arbitrary locale .dat files (containing serialized Python objects) via directory traversal, leading to code execution.
CVE-2021-42771
This high-severity CVE scores 7.8 under NVD CVSS v3. EPSS exploit probability: 0.7%, top 50% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EG Risk
- —
- EPSS
- 49.9%
- KEV
- Not listed
Published
October 20, 2021
Last Modified
November 21, 2024
References (10)
- cve@mitrehttps://github.com/python-babel/babel/pull/782
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2021/10/msg00018.html
- cve@mitrehttps://lists.debian.org/debian-lts/2021/10/msg00040.html
- cve@mitrehttps://www.debian.org/security/2021/dsa-5018
- cve@mitrehttps://www.tenable.com/security/research/tra-2021-14
- af854a3a-2127-422b-91ae-364da2661108https://github.com/python-babel/babel/pull/782
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts/2021/10/msg00040.html
- af854a3a-2127-422b-91ae-364da2661108https://www.debian.org/security/2021/dsa-5018
- af854a3a-2127-422b-91ae-364da2661108https://www.tenable.com/security/research/tra-2021-14
Vendor Advisories for CVE-2021-42771(3)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2021:4162Red Hat Product SecurityMedium
Red Hat Security Advisory: python38:3.8 and python38-devel:3.8 security update
- RHSA-2021:3252Red Hat Product SecurityMedium
Red Hat Security Advisory: python27 security update
- RHSA-2021:3254Red Hat Product SecurityMedium
Red Hat Security Advisory: rh-python38 security, bug fix, and enhancement update
Patch Availability(5)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | python27:2.7-8050020210811095446.3e7ace8b | 2021-11-09 | redhat |
| redhat | python38-devel:3.8-8050020210811101222.e3d35cca | 2021-11-09 | redhat |
| redhat | babel-0:2.5.1-7.el8 | 2021-11-09 | redhat |
| redhat | python27-python-pygments-0:1.5-5.el7 | 2021-08-24 | redhat |
| redhat | rh-python38-python-urllib3-0:1.25.7-7.el7 | 2021-08-24 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| babel | 0.8 ... 2.9.0 (31 versions) | 2.9.1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(3)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2021-427712021-10-26
Babel.Locale in Babel before 2.9.1 allows attackers to load arbitrary locale .dat files (containing serialized Python objects) via directory traversal leading to code execution.
- Red HatRHSA-2021:4151MODERATE2021-04-28
RHSA-2021:4151 — Moderate
- Red HatRHSA-2021:4201MODERATE2021-04-28
RHSA-2021:4201 — Moderate
Data Freshness Timeline
(refreshed 12× in last 7d / 50× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 107 total refreshes for this CVE.
- 2026-07-22 22:51 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-18 09:29 UTCOSV refresh
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:57 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 09:00 UTCOSV refresh
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 18:40 UTCOSV refresh
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat · msrc
- CVE-2001-0414NVD 0.0EG 9.0EPSS 100%NONE
- CVE-1999-0236EG 7.5EPSS 98%HIGH
- CVE-2001-0550NVD 0.0EG 7.3EPSS 99%NONE
- CVE-1999-0612NVD 0.0EG 6.1EPSS 99%NONE
- CVE-2001-0731NVD 0.0EG 4.4EPSS 99%NONE
- CVE-1999-0524EG 4.1EPSS 98%MEDIUM
- CVE-2001-0554NVD 0.0EG 1.3EPSS 98%NONE
- CVE-1999-1412NVD 0.0EG 0.9EPSS 98%NONE
- CVE-2001-0010NVD 0.0EG 0.3EPSS 98%NONE
- CVE-2001-0887EG 0.0NONE
Same CWE
10 shownCWE-22
Frequently asked(5)
What is CVE-2021-42771?
When was CVE-2021-42771 disclosed?
Is CVE-2021-42771 actively exploited?
What is the CVSS score of CVE-2021-42771?
How do I remediate CVE-2021-42771?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-42771
Is Your Infrastructure Affected by CVE-2021-42771?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.