Resource management error in Python



| Updated: 2020-08-11
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2011-1521
CWE-ID CWE-399
Exploitation vector Network
Public exploit N/A
Vulnerable software
Python
Universal components / Libraries / Scripting languages

Vendor Python.org

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Resource management error

EUVDB-ID: #VU45029

Risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2011-1521

CWE-ID: CWE-399 - Resource Management Errors

Exploit availability: No

Description

The vulnerability allows a remote non-authenticated attacker to #BASIC_IMPACT#.

The urllib and urllib2 modules in Python 2.x before 2.7.2 and 3.x before 3.2.1 process Location headers that specify redirection to file: URLs, which makes it easier for remote attackers to obtain sensitive information or cause a denial of service (resource consumption) via a crafted URL, as demonstrated by the file:///etc/passwd and file:///dev/zero URLs.

Mitigation

Install update from vendor's website.

Vulnerable software versions

Python: 2.0 - 3.2

CPE2.3 External links

https://bugs.python.org/issue11662
https://hg.python.org/cpython/file/96a6c128822b/Misc/NEWS
https://hg.python.org/cpython/file/b2934d98dac1/Misc/NEWS
https://hg.python.org/cpython/rev/96a6c128822b/
https://hg.python.org/cpython/rev/b2934d98dac1/
https://lists.apple.com/archives/Security-announce/2011//Oct/msg00003.html
https://lists.opensuse.org/opensuse-security-announce/2011-05/msg00005.html
https://openwall.com/lists/oss-security/2011/03/24/5
https://openwall.com/lists/oss-security/2011/03/28/2
https://openwall.com/lists/oss-security/2011/09/11/1
https://openwall.com/lists/oss-security/2011/09/13/2
https://openwall.com/lists/oss-security/2011/09/15/5
https://secunia.com/advisories/50858
https://secunia.com/advisories/51024
https://secunia.com/advisories/51040
https://securitytracker.com/id?1025488
https://support.apple.com/kb/HT5002
https://www.mandriva.com/security/advisories?name=MDVSA-2011:096
https://www.ubuntu.com/usn/USN-1592-1
https://www.ubuntu.com/usn/USN-1596-1
https://www.ubuntu.com/usn/USN-1613-1
https://www.ubuntu.com/usn/USN-1613-2
https://bugzilla.redhat.com/show_bug.cgi?id=690560
https://bugzilla.redhat.com/show_bug.cgi?id=737366
https://www.djangoproject.com/weblog/2011/sep/09/
https://www.djangoproject.com/weblog/2011/sep/10/127/


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###