CVE-2021-42771
published 2021-10-20CVE-2021-42771: Babel.Locale in Babel before 2.9.1 allows attackers to load arbitrary locale .dat files (containing serialized Python objects) via directory traversal, leading…
PriorityP339high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.72%
50.2th percentile
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.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| babel | babel | >= 0 < 2.9.1 | 2.9.1 |
| debian | debian_linux | — | — |
| debian | python-babel | < python-babel 2.8.0+dfsg.1-7 (bookworm) | python-babel 2.8.0+dfsg.1-7 (bookworm) |
| msrc | cbl2_babel_2.9.1-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_babel_2.6.0-9_on_cbl_mariner_1.0 | — | — |
| pocoo | babel | < 2.9.1 | 2.9.1 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.2HIGHAV:L/AC:L/Au:N/C:C/I:C/A:C
osv7.8HIGH
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Directory Traversal in Babel
osv·2021-10-21
CVE-2021-42771 [HIGH] Directory Traversal in Babel
Directory Traversal in Babel
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.
GHSA
Directory Traversal in Babel
ghsa·2021-10-21
CVE-2021-42771 [HIGH] CWE-22 Directory Traversal in Babel
Directory Traversal in Babel
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.
OSV
CVE-2021-42771: Babel
osv·2021-10-20·CVSS 7.8
CVE-2021-42771 [HIGH] CVE-2021-42771: Babel
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.
Microsoft
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.
vendor_msrc·2021-10-12·CVSS 7.8
CVE-2021-42771 [HIGH] CWE-22 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Red Hat
python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code
vendor_redhat·2021-04-28·CVSS 7.8
CVE-2021-42771 [HIGH] CWE-22 python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code
python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code
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.
A flaw was found in python-babel. A path traversal vulnerability was found in how locale data files are checked and loaded within python-babel, allowing a local attacker to trick an application that uses python-babel to load a file outside of the intended locale directory. The highest threat from this vulnerability is to data confidentiality and integrity as well as service availability.
Statement: It is rather uncommon for applications to use Babel.Locale() with an untrusted attacker-controlled langu
Debian
CVE-2021-42771: python-babel - Babel.Locale in Babel before 2.9.1 allows attackers to load arbitrary locale .da...
vendor_debian·2021·CVSS 7.8
CVE-2021-42771 [HIGH] CVE-2021-42771: python-babel - Babel.Locale in Babel before 2.9.1 allows attackers to load arbitrary locale .da...
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.
Scope: local
bookworm: resolved (fixed in 2.8.0+dfsg.1-7)
bullseye: resolved (fixed in 2.8.0+dfsg.1-7)
forky: resolved (fixed in 2.8.0+dfsg.1-7)
sid: resolved (fixed in 2.8.0+dfsg.1-7)
trixie: resolved (fixed in 2.8.0+dfsg.1-7)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/python-babel/babel/pull/782https://lists.debian.org/debian-lts-announce/2021/10/msg00018.htmlhttps://lists.debian.org/debian-lts/2021/10/msg00040.htmlhttps://www.debian.org/security/2021/dsa-5018https://www.tenable.com/security/research/tra-2021-14https://github.com/python-babel/babel/pull/782https://lists.debian.org/debian-lts-announce/2021/10/msg00018.htmlhttps://lists.debian.org/debian-lts/2021/10/msg00040.htmlhttps://www.debian.org/security/2021/dsa-5018https://www.tenable.com/security/research/tra-2021-14
2021-10-20
Published