Vulnerability in python-babel - Arbitrary Code Execution

python-babel Updated 02 Oct 2025

Summary

21/10/2021
N/A
Yes i
Unrated
Not published

DLA-2790-1: python-babel - security update. Affects python-babel versions < 2.3.4+dfsg.1-2+deb9u1. Fixed in 2.3.4+dfsg.1-2+deb9u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

python-babel is a set of tools for internationalizing Python applications. It provides functionality for handling translations, formatting dates and numbers, and other localization tasks. The package is widely used in various Python projects.

Vulnerability Detail

A vulnerability has been discovered in python-babel that allows attackers to load arbitrary locale .dat files via directory traversal, leading to code execution. This can be exploited by manipulating the file path to access and execute arbitrary Python objects within the application. The vulnerability was previously addressed under CVE-2021-20095 in other distributions and suites.

How To Fix

Minimum fixed version

2.3.4+dfsg.1-2+deb9u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-babel

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading the python-babel package.

Conclusion

The vulnerability in python-babel allows attackers to execute arbitrary code by loading malicious .dat files. It is recommended to upgrade the python-babel package to the fixed version to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for python-babel →

Share this vulnerability

FAQ

python-babel is a set of tools for internationalizing Python applications. It provides functionality for handling translations, formatting dates and numbers, and other localization tasks.

This vulnerability allows attackers to execute arbitrary code by loading malicious .dat files via directory traversal. It can lead to unauthorized access, data manipulation, and potential compromise of the affected system.

Yes, this vulnerability was previously addressed under CVE-2021-20095 in other distributions and suites. It is recommended to check the security status of the python-babel package in your specific distribution.

To upgrade the python-babel package, you can use the package manager of the Debian 9 stretch distribution. Run the command 'apt-get update' to update the package lists, followed by 'apt-get upgrade python-babel' to upgrade the package.

No, there is no known workaround for this vulnerability. It is crucial to apply the recommended fix by upgrading the python-babel package.

Related vulnerabilities

Recent vulnerabilities recorded for python-babel.

How To Fix

Minimum fixed version

2.3.4+dfsg.1-2+deb9u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-babel

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback