Security Update for python2.7
Summary
DLA-2628-1: python2.7 - security update. Affects python2.7 versions < 2.7.13-2+deb9u5. Fixed in 2.7.13-2+deb9u5. 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 2.7 is an open-source programming language widely used for various applications. It provides a rich set of libraries and frameworks for developing software. However, two security vulnerabilities have been discovered in python2.7 that require immediate attention and remediation.
Vulnerability Detail
The first vulnerability, identified as CVE-2019-16935, affects the XML-RPC server in Python 2.7. It allows for cross-site scripting (XSS) attacks through the server_title field. Attackers can inject arbitrary JavaScript code, which can be executed by clients visiting the server's HTTP URL.
The second vulnerability, known as CVE-2021-23336, exposes Python2.7 to web cache poisoning. This occurs due to a flaw in the urllib.parse.parse_qsl and urllib.parse.parse_qs functions, allowing parameter cloaking. Attackers can manipulate query parameters using a semicolon (;) as a separator, leading to different interpretations between the proxy and the server. This can result in malicious requests being cached as safe ones, bypassing security measures.
How To Fix
Minimum fixed version
2.7.13-2+deb9u5
This is the first release that contains the fix.
sudo apt-get install --only-upgrade python2.7
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There are no specific workarounds mentioned for these vulnerabilities. Upgrading to the fixed version is the recommended solution.
Conclusion
Python 2.7 users should promptly upgrade their packages to version 2.7.13-2+deb9u5 or later to address the security vulnerabilities. These updates ensure the proper functioning of the affected functions and mitigate the risks associated with cross-site scripting (XSS) attacks and web cache poisoning. For further support and assistance in vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for python2.7 →
FAQ
CVE-2019-16935 allows attackers to inject arbitrary JavaScript code into the XML-RPC server's HTTP URL. This can lead to cross-site scripting (XSS) attacks, potentially compromising the security and integrity of client systems.
CVE-2021-23336 can be exploited by manipulating query parameters using a semicolon (;) as a separator. This can result in web cache poisoning, where malicious requests are cached as safe ones, bypassing security measures.
Yes, all versions of Python 2.7 are vulnerable to these security issues. It is crucial to upgrade to the fixed version to mitigate the risks.
No specific workarounds have been mentioned for these vulnerabilities. Upgrading to the fixed version is the recommended solution.
For more detailed information about these vulnerabilities, you can refer to the respective CVE entries: CVE-2019-16935 and CVE-2021-23336.
Related vulnerabilities
Recent vulnerabilities recorded for python2.7.