CVE-2021-42771

Summary

CVECVE-2021-42771
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-10-20 21:15:00 UTC
Updated2021-12-14 21:22:00 UTC
DescriptionBabel.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.

Risk And Classification

Problem Types: CWE-22

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Application Pocoo Babel All All All All

References

ReferenceSourceLinkTags
Re: [EXTERNAL] TRA-2021-14/CVE-2021-20095 status MISC lists.debian.org
[SECURITY] [DLA 2790-1] python-babel security update MLIST lists.debian.org
Python-Babel/Babel Locale Directory Traversal / Arbitrary Code Execution - Research Advisory | Tenable® MISC www.tenable.com
Clean locale identifiers before loading from file by akx · Pull Request #782 · python-babel/babel · GitHub MISC github.com
Debian -- Security Information -- DSA-5018-1 python-babel DEBIAN www.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 159463 Oracle Enterprise Linux Security Update for python27:2.7 (ELSA-2021-4151)
  • 159467 Oracle Enterprise Linux Security Update for python38:3.8 and python38-devel:3.8 (ELSA-2021-4162)
  • 159469 Oracle Enterprise Linux Security Update for babel (ELSA-2021-4201)
  • 178841 Debian Security Update for python-babel (DLA 2790-1)
  • 180160 Debian Security Update for python-babel (CVE-2021-42771)
  • 239807 Red Hat Update for babel (RHSA-2021:4201)
  • 239826 Red Hat Update for python27:2.7 (RHSA-2021:4151)
  • 239845 Red Hat Update for python38:3.8 and python38-devel:3.8 (RHSA-2021:4162)
  • 296066 Oracle Solaris 11.4 Support Repository Update (SRU) 40.107.3 Missing (CPUOCT2021)
  • 354849 Amazon Linux Security Advisory for babel : ALAS2-2023-2010
  • 354868 Amazon Linux Security Advisory for python-babel : ALAS-2023-1720
  • 355079 Amazon Linux Security Advisory for babel : AL2012-2023-403
  • 377404 Alibaba Cloud Linux Security Update for babel (ALINUX3-SA-2022:0085)
  • 502233 Alpine Linux Security Update for py3-babel
  • 504327 Alpine Linux Security Update for py3-babel
  • 671318 EulerOS Security Update for babel (EulerOS-SA-2022-1199)
  • 671332 EulerOS Security Update for babel (EulerOS-SA-2022-1218)
  • 751471 OpenSUSE Security Update for python-Babel (openSUSE-SU-2021:3945-1)
  • 751519 OpenSUSE Security Update for python-Babel (openSUSE-SU-2021:1553-1)
  • 752670 SUSE Enterprise Linux Security Update for python-Babel (SUSE-SU-2022:3590-1)
  • 900368 Common Base Linux Mariner (CBL-Mariner) Security Update for babel (6032)
  • 901773 Common Base Linux Mariner (CBL-Mariner) Security Update for babel (6325-1)
  • 940077 AlmaLinux Security Update for babel (ALSA-2021:4201)
  • 940522 AlmaLinux Security Update for python27:2.7 (ALSA-2021:4151)
  • 940526 AlmaLinux Security Update for python38:3.8 and python38-devel:3.8 (ALSA-2021:4162)
  • 960320 Rocky Linux Security Update for python27:2.7 (RLSA-2021:4151)
  • 960325 Rocky Linux Security Update for babel (RLSA-2021:4201)
  • 960342 Rocky Linux Security Update for python38:3.8 and python38-devel:3.8 (RLSA-2021:4162)
  • 980255 Python (pip) Security Update for babel (GHSA-h4m5-qpfp-3mpv)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report