CVE-2021-42771: Babel.Locale in Babel before 2.9.1 allows attackers to load arbitrary locale .dat files (containing serialized
CVE-2021-42771 is a high-severity flaw (CVSS 7.8) affecting babel, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.8% (top 44%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2021-10-20 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-42771?
babel: upgrade to 2.9.1; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-42771 being exploited?
CVE-2021-42771 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-42771 affect?
CVE-2021-42771 affects babel, debian linux. Severity is high (CVSS 7.8). 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.
How urgent is CVE-2021-42771?
Priority 51/100. High severity; Public exploit reference; On your watchlist
Software pages
Python vulnerabilities · Debian vulnerabilities
Related CVEs
- CVE-2026-44728 HIGH 8.2 UPGRADE Babel is a compiler for writing next generation JavaScript
- CVE-2026-49356 LOW 3.2 UPGRADE Babel is a compiler for writing next generation JavaScript
- CVE-2023-45133 CRITICAL 9.3 MITIGATE UPGRADE Babel is a compiler for writingJavaScript