CVE-2021-42771
HIGH 7.8CVSS 3.1Directory 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.
- Published
- 20 Oct 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-h4m5-qpfp-3mpvPYSEC-2021-421
- Sources
- NVDJSONOSV GHSA-h4m5-qpfp-3mpvJSONOSV PYSEC-2021-421JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pocoo | babelcpe:2.3:a:pocoo:babel:*:*:*:*:*:*:*:* |
< 2.9.1 | 2.9.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | babel | < 2.9.1 | 2.9.1 |
References
- https://github.com/python-babel/babel/pull/782 · Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts/2021/10/msg00040.html · Mailing List, Third Party Advisory, WEB
- https://www.debian.org/security/2021/dsa-5018 · Third Party Advisory, WEB
- https://www.tenable.com/security/research/tra-2021-14 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-42771 · ADVISORY
- https://github.com/python-babel/babel/commit/412015ef642bfcc0d8ba8f4d05cdbb6aac98d9b3 · WEB
- https://github.com/advisories/GHSA-h4m5-qpfp-3mpv · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/babel/PYSEC-2021-421.yaml · WEB
- https://github.com/python-babel/babel · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 20 Oct 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Oct 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Oct 2021)