ADVISORIES

Vulnerability

CVE-2021-42771

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.

35 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2-2023-2010

    Amazon Linux 2 2017.12 - ALAS2-2023-2010: medium priority package update for babel

    Medium CVE-2021-42771 Amazon Linux Updated 4 April 2023
  • ALPINE-CVE-2021-42771

    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.

    CVE-2021-42771 Alpine Updated 23 October 2026
  • ALPINE-EDGE-CVE-2021-42771
    CVE-2021-42771 Alpine Updated 18 November 2026
  • ALSA-2021:4151

    Moderate: python27:2.7 security update

    CVE-2020-27619CVE-2020-28493CVE-2021-20095CVE-2021-20270 AlmaLinux Updated 29 October 2026
  • ALSA-2021:4162

    Moderate: python38:3.8 and python38-devel:3.8 security update

    CVE-2019-18874CVE-2020-27619CVE-2020-28493CVE-2021-20095 AlmaLinux Updated 29 October 2026
  • ALSA-2021:4201

    Moderate: babel security and bug fix update

    CVE-2021-20095CVE-2021-42771 AlmaLinux Updated 29 October 2026
  • AZL-6325

    CVE-2021-42771 affecting package babel for versions less than 2.9.1-1

    CVE-2021-42771 Azure Linux Updated 21 April 2026
  • DEBIAN-CVE-2021-42771

    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.

    CVE-2021-42771 Debian Updated 23 October 2026
  • DLA-2790-1

    python-babel - security update

    CVE-2021-42771 Debian Updated 20 November 2026
  • DSA-5018-1

    python-babel - security update

    CVE-2021-42771 Debian Updated 20 November 2026
  • ELSA-2021-4151

    ELSA-2021-4151: python27:2.7 security update (MODERATE)

    Moderate CVE-2020-27619CVE-2020-28493CVE-2021-20095CVE-2021-20270 Oracle Linux Updated 16 November 2021
  • ELSA-2021-4162

    ELSA-2021-4162: python38:3.8 and python38-devel:3.8 security update (MODERATE)

    Moderate CVE-2019-18874CVE-2020-28493CVE-2021-20095CVE-2021-23336 Oracle Linux Updated 16 November 2021
  • ELSA-2021-4201

    ELSA-2021-4201: babel security and bug fix update (MODERATE)

    Moderate CVE-2021-20095CVE-2021-42771 Oracle Linux Updated 16 November 2021
  • GHSA-h4m5-qpfp-3mpv

    Directory Traversal in Babel

    High CVE-2021-42771 PyPI Updated 12 September 2024
  • PYSEC-2021-421

    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.

    CVE-2021-42771 PyPI Updated 8 November 2023
  • RHSA-2021:3252

    Red Hat Security Advisory: python27 security update

    CVE-2020-27619CVE-2020-28493CVE-2021-20095CVE-2021-20270 Red Hat Updated 23 November 2026
  • RHSA-2021:3254

    Red Hat Security Advisory: rh-python38 security, bug fix, and enhancement update

    CVE-2020-25659CVE-2020-27619CVE-2020-27783CVE-2020-28493 Red Hat Updated 23 November 2026
  • RHSA-2021:4151

    Red Hat Security Advisory: python27:2.7 security update

    CVE-2020-27619CVE-2020-28493CVE-2021-20095CVE-2021-20270 Red Hat Updated 23 November 2026
  • RHSA-2021:4162

    Red Hat Security Advisory: python38:3.8 and python38-devel:3.8 security update

    CVE-2019-18874CVE-2020-27619CVE-2020-28493CVE-2021-20095 Red Hat Updated 23 November 2026
  • RHSA-2021:4201

    Red Hat Security Advisory: babel security and bug fix update

    CVE-2021-20095CVE-2021-42771 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2021-42771

    python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code

    Moderate CVE-2021-42771 Red Hat Updated 7 November 2026
  • RLSA-2021:4151

    Moderate: python27:2.7 security update

    CVE-2020-27619CVE-2020-28493CVE-2021-20095CVE-2021-20270 Rocky Linux Updated 4 February 2026
  • RLSA-2021:4162

    Moderate: python38:3.8 and python38-devel:3.8 security update

    CVE-2019-18874CVE-2020-27619CVE-2020-28493CVE-2021-20095 Rocky Linux Updated 5 February 2026
  • RLSA-2021:4201

    Moderate: babel security and bug fix update

    CVE-2021-20095CVE-2021-42771 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2021:3945-1

    Security update for python-Babel

    CVE-2021-42771 SUSE Updated 4 February 2026
  • SUSE-SU-2021:4161-1

    Security update for python-Babel

    CVE-2021-42771 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0028-1

    Security update for python-Babel

    CVE-2021-42771 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0029-1

    Security update for python-Babel

    CVE-2021-42771 SUSE Updated 4 February 2026
  • SUSE-SU-2022:3590-1

    Security update for python-Babel

    CVE-2021-42771 SUSE Updated 4 February 2026
  • UBUNTU-CVE-2021-42771

    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.

    CVE-2021-42771 Ubuntu Updated 16 July 2025
  • openSUSE-SU-2021:1553-1

    Security update for python-Babel

    CVE-2021-42771 openSUSE Updated 4 February 2026
  • openSUSE-SU-2021:3945-1

    Security update for python-Babel

    CVE-2021-42771 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11602-1

    python36-Babel-2.9.1-3.1 on GA media

    CVE-2021-42771 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14127-1

    python310-Babel-2.14.0-1.5 on GA media

    CVE-2021-42771 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:11986-1

    python313-Babel-2.18.0-1.4 on GA media

    CVE-2021-42771 openSUSE Updated 5 October 2026

References