Critical Vulnerability in Python-Babel Package: CVE-2021-20095

python-babel Updated 02 Oct 2025

Summary

29/04/2021
N/A
Yes i
High
7.8

UBUNTU-CVE-2021-20095: Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This candidate was withdrawn by its CNA. Notes: none. Affects python-babel versions < 1.3+dfsg.1-2ubuntu2+esm1. Fixed in 1.3+dfsg.1-2ubuntu2+esm1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Python-Babel is a library that provides internationalization (i18n) and localization (l10n) support for Python applications. It allows developers to format dates, numbers, and currencies according to the user's locale. The package is widely used in various applications to ensure that software can be adapted for different languages and regions. However, it has been identified that certain versions of Python-Babel are vulnerable to a critical security issue that could potentially allow attackers to exploit the application.

Vulnerability Detail

The vulnerability identified as CVE-2021-20095 originates from a flaw in the Python-Babel package that could lead to unauthorized access or manipulation of data. This vulnerability has a CVSS score of 7.8, indicating a high severity level. Attackers could exploit this flaw to execute arbitrary code or cause denial of service, impacting the integrity and availability of the application. The issue was withdrawn by its CNA, and users are advised to take immediate action to mitigate risks associated with this vulnerability.

How To Fix

Minimum fixed version

1.3+dfsg.1-2ubuntu2+esm1

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

As a temporary measure, users can limit the exposure of the application by restricting access to the affected components or by implementing additional security layers, such as firewalls or intrusion detection systems. However, these are not substitutes for applying the necessary updates.

Conclusion

CVE-2021-20095 represents a significant security risk for applications using the Python-Babel package. It is crucial for users to update their installations to the patched versions to mitigate potential threats. Regular monitoring and updates are essential for maintaining application security.

See every vulnerability recorded for python-babel →

Share this vulnerability

FAQ

CVE-2021-20095 is a critical vulnerability in the Python-Babel package that could allow unauthorized access or manipulation of data.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

The CVSS score for CVE-2021-20095 is 7.8, indicating a high severity level.

If immediate updates are not possible, consider implementing workarounds such as restricting access to the affected components or enhancing security measures.

More information can be found in the official Ubuntu security notices and on the GitHub page for Ubuntu security notices.

Related vulnerabilities

Recent vulnerabilities recorded for python-babel.

How To Fix

Minimum fixed version

1.3+dfsg.1-2ubuntu2+esm1

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