{"id":"CVE-2021-42771","aliases":["GHSA-h4m5-qpfp-3mpv","PYSEC-2021-421"],"url":"https://o3.security/vulnerability/CVE-2021-42771","summary":"Directory Traversal in Babel","details":"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":"2021-10-20T21:15:07.930Z","modified":"2026-10-05T10:26:49.717524317Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.0077,"percentile":0.52493,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"babel","fixedVersion":"2.9.1"}],"fix":{"url":"https://github.com/python-babel/babel/pull/782","label":"python-babel/babel#782"},"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts/2021/10/msg00040.html"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-5018"},{"type":"FIX","url":"https://github.com/python-babel/babel/pull/782"},{"type":"EVIDENCE","url":"https://www.tenable.com/security/research/tra-2021-14"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42771"},{"type":"WEB","url":"https://github.com/python-babel/babel/commit/412015ef642bfcc0d8ba8f4d05cdbb6aac98d9b3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h4m5-qpfp-3mpv"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/babel/PYSEC-2021-421.yaml"},{"type":"WEB","url":"https://github.com/python-babel/babel"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-05T10:26:49.717524317Z"}}