{"id":"UBUNTU-CVE-2021-42771","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.","modified":"2025-07-16T08:27:02.637337Z","published":"2021-10-20T21:15:00Z","withdrawn":"2025-07-18T16:47:02Z","upstream":["CVE-2021-42771"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-42771"},{"type":"REPORT","url":"https://www.tenable.com/security/research/tra-2021-14"},{"type":"REPORT","url":"https://github.com/python-babel/babel/pull/782"},{"type":"REPORT","url":"https://lists.debian.org/debian-lts/2021/10/msg00040.html"},{"type":"REPORT","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-42771"}],"affected":[{"package":{"name":"python-babel","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/python-babel@1.3+dfsg.1-2ubuntu2+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3+dfsg.1-2ubuntu2+esm1"}]}],"versions":["0.9.6-1ubuntu1","1.3-2ubuntu1","1.3+dfsg.1-1","1.3+dfsg.1-1ubuntu1","1.3+dfsg.1-2","1.3+dfsg.1-2ubuntu1","1.3+dfsg.1-2ubuntu2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"python-babel","binary_version":"1.3+dfsg.1-2ubuntu2+esm1"},{"binary_name":"python-babel-doc","binary_version":"1.3+dfsg.1-2ubuntu2+esm1"},{"binary_name":"python-babel-localedata","binary_version":"1.3+dfsg.1-2ubuntu2+esm1"},{"binary_name":"python-pybabel","binary_version":"1.3+dfsg.1-2ubuntu2+esm1"},{"binary_name":"python3-babel","binary_version":"1.3+dfsg.1-2ubuntu2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42771.json"}},{"package":{"name":"python-babel","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-babel@1.3+dfsg.1-6ubuntu0.1~esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3+dfsg.1-6ubuntu0.1~esm1"}]}],"versions":["1.3+dfsg.1-6"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"python-babel","binary_version":"1.3+dfsg.1-6ubuntu0.1~esm1"},{"binary_name":"python-babel-doc","binary_version":"1.3+dfsg.1-6ubuntu0.1~esm1"},{"binary_name":"python-babel-localedata","binary_version":"1.3+dfsg.1-6ubuntu0.1~esm1"},{"binary_version":"1.3+dfsg.1-6ubuntu0.1~esm1","binary_name":"python-pybabel"},{"binary_name":"python3-babel","binary_version":"1.3+dfsg.1-6ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42771.json"}},{"package":{"name":"python-babel","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python-babel@2.4.0+dfsg.1-2ubuntu1.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0+dfsg.1-2ubuntu1.1"}]}],"versions":["2.4.0+dfsg.1-2ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python-babel","binary_version":"2.4.0+dfsg.1-2ubuntu1.1"},{"binary_name":"python-babel-doc","binary_version":"2.4.0+dfsg.1-2ubuntu1.1"},{"binary_version":"2.4.0+dfsg.1-2ubuntu1.1","binary_name":"python-babel-localedata"},{"binary_name":"python3-babel","binary_version":"2.4.0+dfsg.1-2ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42771.json"}},{"package":{"name":"python-babel","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/python-babel@2.6.0+dfsg.1-1ubuntu2.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0+dfsg.1-1ubuntu2.2"}]}],"versions":["2.6.0+dfsg.1-1","2.6.0+dfsg.1-1ubuntu1","2.6.0+dfsg.1-1ubuntu2","2.6.0+dfsg.1-1ubuntu2.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python-babel","binary_version":"2.6.0+dfsg.1-1ubuntu2.2"},{"binary_name":"python-babel-doc","binary_version":"2.6.0+dfsg.1-1ubuntu2.2"},{"binary_name":"python-babel-localedata","binary_version":"2.6.0+dfsg.1-1ubuntu2.2"},{"binary_version":"2.6.0+dfsg.1-1ubuntu2.2","binary_name":"python3-babel"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42771.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}