{"api_version":"1","generated_at":"2026-04-23T00:41:08+00:00","cve":"CVE-2021-42771","urls":{"html":"https://cve.report/CVE-2021-42771","api":"https://cve.report/api/cve/CVE-2021-42771.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-42771","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-42771"},"summary":{"title":"CVE-2021-42771","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-10-20 21:15:00","updated_at":"2021-12-14 21:22:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts/2021/10/msg00040.html","name":"https://lists.debian.org/debian-lts/2021/10/msg00040.html","refsource":"MISC","tags":[],"title":"Re: [EXTERNAL] TRA-2021-14/CVE-2021-20095 status","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html","name":"[debian-lts-announce] 20211021 [SECURITY] [DLA 2790-1] python-babel security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2790-1] python-babel security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.tenable.com/security/research/tra-2021-14","name":"https://www.tenable.com/security/research/tra-2021-14","refsource":"MISC","tags":[],"title":"Python-Babel/Babel Locale Directory Traversal / Arbitrary Code Execution - Research Advisory | Tenable®","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/python-babel/babel/pull/782","name":"https://github.com/python-babel/babel/pull/782","refsource":"MISC","tags":[],"title":"Clean locale identifiers before loading from file by akx · Pull Request #782 · python-babel/babel · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2021/dsa-5018","name":"DSA-5018","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5018-1 python-babel","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42771","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42771","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"42771","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"42771","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pocoo","cpe5":"babel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-42771","qid":"159463","title":"Oracle Enterprise Linux Security Update for python27:2.7 (ELSA-2021-4151)"},{"cve":"CVE-2021-42771","qid":"159467","title":"Oracle Enterprise Linux Security Update for python38:3.8 and python38-devel:3.8 (ELSA-2021-4162)"},{"cve":"CVE-2021-42771","qid":"159469","title":"Oracle Enterprise Linux Security Update for babel (ELSA-2021-4201)"},{"cve":"CVE-2021-42771","qid":"178841","title":"Debian Security Update for python-babel (DLA 2790-1)"},{"cve":"CVE-2021-42771","qid":"180160","title":"Debian Security Update for python-babel (CVE-2021-42771)"},{"cve":"CVE-2021-42771","qid":"239807","title":"Red Hat Update for babel (RHSA-2021:4201)"},{"cve":"CVE-2021-42771","qid":"239826","title":"Red Hat Update for python27:2.7 (RHSA-2021:4151)"},{"cve":"CVE-2021-42771","qid":"239845","title":"Red Hat Update for python38:3.8 and python38-devel:3.8 (RHSA-2021:4162)"},{"cve":"CVE-2021-42771","qid":"296066","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 40.107.3 Missing (CPUOCT2021)"},{"cve":"CVE-2021-42771","qid":"354849","title":"Amazon Linux Security Advisory for babel : ALAS2-2023-2010"},{"cve":"CVE-2021-42771","qid":"354868","title":"Amazon Linux Security Advisory for python-babel : ALAS-2023-1720"},{"cve":"CVE-2021-42771","qid":"355079","title":"Amazon Linux Security Advisory for babel : AL2012-2023-403"},{"cve":"CVE-2021-42771","qid":"377404","title":"Alibaba Cloud Linux Security Update for babel (ALINUX3-SA-2022:0085)"},{"cve":"CVE-2021-42771","qid":"502233","title":"Alpine Linux Security Update for py3-babel"},{"cve":"CVE-2021-42771","qid":"504327","title":"Alpine Linux Security Update for py3-babel"},{"cve":"CVE-2021-42771","qid":"671318","title":"EulerOS Security Update for babel (EulerOS-SA-2022-1199)"},{"cve":"CVE-2021-42771","qid":"671332","title":"EulerOS Security Update for babel (EulerOS-SA-2022-1218)"},{"cve":"CVE-2021-42771","qid":"751471","title":"OpenSUSE Security Update for python-Babel (openSUSE-SU-2021:3945-1)"},{"cve":"CVE-2021-42771","qid":"751519","title":"OpenSUSE Security Update for python-Babel (openSUSE-SU-2021:1553-1)"},{"cve":"CVE-2021-42771","qid":"752670","title":"SUSE Enterprise Linux Security Update for python-Babel (SUSE-SU-2022:3590-1)"},{"cve":"CVE-2021-42771","qid":"900368","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for babel (6032)"},{"cve":"CVE-2021-42771","qid":"901773","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for babel (6325-1)"},{"cve":"CVE-2021-42771","qid":"940077","title":"AlmaLinux Security Update for babel (ALSA-2021:4201)"},{"cve":"CVE-2021-42771","qid":"940522","title":"AlmaLinux Security Update for python27:2.7 (ALSA-2021:4151)"},{"cve":"CVE-2021-42771","qid":"940526","title":"AlmaLinux Security Update for python38:3.8 and python38-devel:3.8 (ALSA-2021:4162)"},{"cve":"CVE-2021-42771","qid":"960320","title":"Rocky Linux Security Update for python27:2.7 (RLSA-2021:4151)"},{"cve":"CVE-2021-42771","qid":"960325","title":"Rocky Linux Security Update for babel (RLSA-2021:4201)"},{"cve":"CVE-2021-42771","qid":"960342","title":"Rocky Linux Security Update for python38:3.8 and python38-devel:3.8 (RLSA-2021:4162)"},{"cve":"CVE-2021-42771","qid":"980255","title":"Python (pip) Security Update for babel (GHSA-h4m5-qpfp-3mpv)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-42771","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://www.tenable.com/security/research/tra-2021-14","refsource":"MISC","name":"https://www.tenable.com/security/research/tra-2021-14"},{"url":"https://github.com/python-babel/babel/pull/782","refsource":"MISC","name":"https://github.com/python-babel/babel/pull/782"},{"url":"https://lists.debian.org/debian-lts/2021/10/msg00040.html","refsource":"MISC","name":"https://lists.debian.org/debian-lts/2021/10/msg00040.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20211021 [SECURITY] [DLA 2790-1] python-babel security update","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html"},{"refsource":"DEBIAN","name":"DSA-5018","url":"https://www.debian.org/security/2021/dsa-5018"}]}},"nvd":{"publishedDate":"2021-10-20 21:15:00","lastModifiedDate":"2021-12-14 21:22:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":7.2},"severity":"HIGH","exploitabilityScore":3.9,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pocoo:babel:*:*:*:*:*:*:*:*","versionEndExcluding":"2.9.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"42771","Ordinal":"219278","Title":"CVE-2021-42771","CVE":"CVE-2021-42771","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"42771","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"42771","Ordinal":"2","NoteData":"2021-10-20","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"42771","Ordinal":"3","NoteData":"2021-10-21","Type":"Other","Title":"Modified"}]}}}