CVE-2021-42771
7.8high
Directory Traversal in Babel
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.77% (higher than 52% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-h4m5-qpfp-3mpvPYSEC-2021-421
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| babel (PyPI) | before 2.9.1 | GitHub Advisory Database, PyPA Advisory Database |
| pocoo babel | before 2.9.1 | NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high 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 | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.2high CVSS:2.0 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Classification
What each source says
CVE List
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.
NVD (es)
Babel.Locale en Babel versiones anteriores a 2.9.1, permite a atacantes cargar archivos .dat de configuración regional arbitrarios (que contienen objetos Python serializados) por medio de salto de directorio, lo que conlleva a una ejecución de código
References
| https://www.tenable.com/security/research/tra-2021-14 | exploit, third-party-advisory, web | |
| https://github.com/python-babel/babel/pull/782 | patch, third-party-advisory, web | |
| https://lists.debian.org/debian-lts/2021/10/msg00040.html | mailing-list, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html | mailing-list, third-party-advisory, web | |
| https://www.debian.org/security/2021/dsa-5018 | third-party-advisory, vendor-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 | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-42771 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h4m5-qpfp-3mpv changed 2024-09-12 | CC-BY-4.0 |
| NVD | CVE-2021-42771 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-421 changed 2023-11-08 | CC-BY-4.0 |