{"id":"CVE-2021-42771","aliases":["CVE-2021-42771","GHSA-h4m5-qpfp-3mpv","PYSEC-2021-421"],"related":[],"kind":"vulnerability","state":"published","title":"Directory Traversal in Babel","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-10-20T20:05:35.000Z","modified":"2026-06-17T04:10:06.940Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","score":7.2,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.1"}],"ecosystem":"PyPI","package":"babel","purl":"pkg:pypi/babel","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.9.1"}],"vendor":"pocoo","product":"babel","cpe":"cpe:2.3:a:pocoo:babel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.1"}],"ecosystem":"PyPI","package":"babel","purl":"pkg:pypi/babel","source":"pysec"}],"references":[{"url":"https://www.tenable.com/security/research/tra-2021-14","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/python-babel/babel/pull/782","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts/2021/10/msg00040.html","tags":["mailing-list","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.debian.org/security/2021/dsa-5018","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42771","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/python-babel/babel/commit/412015ef642bfcc0d8ba8f4d05cdbb6aac98d9b3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-h4m5-qpfp-3mpv","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/babel/PYSEC-2021-421.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-babel/babel","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42771","url":"https://www.cve.org/CVERecord?id=CVE-2021-42771","licence":"CVE Terms of Use","modified":"2024-08-04T03:38:50.154Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h4m5-qpfp-3mpv","url":"https://github.com/advisories/GHSA-h4m5-qpfp-3mpv","licence":"CC-BY-4.0","modified":"2024-09-12T21:07:41.408Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42771","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42771","licence":"Public domain","modified":"2026-06-17T04:10:06.940Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-421","url":"https://osv.dev/vulnerability/PYSEC-2021-421","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:07.685Z"}],"updatedAt":"2026-11-25T22:58:04.703Z","epss":{"score":0.0077,"percentile":0.52075,"date":"2026-11-30T12:00:22.000Z"}}