Vulnerability in python-babel - Arbitrary Code Execution
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.