Ubuntu CVE Tracker
UBUNTU-CVE-2021-42771
This advisory was withdrawn on 18 July 2025.
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python-babel | All versions before 1.3+dfsg.1-2ubuntu2+esm1 (fixed in 1.3+dfsg.1-2ubuntu2+esm1) |
| Ubuntu:Pro:16.04:LTS | python-babel | All versions before 1.3+dfsg.1-6ubuntu0.1~esm1 (fixed in 1.3+dfsg.1-6ubuntu0.1~esm1) |
| Ubuntu:18.04:LTS | python-babel | All versions before 2.4.0+dfsg.1-2ubuntu1.1 (fixed in 2.4.0+dfsg.1-2ubuntu1.1) |
| Ubuntu:20.04:LTS | python-babel | All versions before 2.6.0+dfsg.1-1ubuntu2.2 (fixed in 2.6.0+dfsg.1-1ubuntu2.2) |
References
- https://ubuntu.com/security/CVE-2021-42771
- https://www.tenable.com/security/research/tra-2021-14
- https://github.com/python-babel/babel/pull/782
- https://lists.debian.org/debian-lts/2021/10/msg00040.html
- https://lists.debian.org/debian-lts-announce/2021/10/msg00018.html
- https://www.cve.org/CVERecord?id=CVE-2021-42771