Python 2.6.2 vulnerabilities

129 published vulnerabilities affect Python 2.6.2. The 2.6 line no longer gets security fixes.

129CVEs
8critical (CVSS 9+)
39high (CVSS 7–8.9)
0exploited in the wild

What to upgrade to

The newest release on the 2.6 line is 2.6.6150, with 124 known CVEs. The newest Python release we know of is 3.15.2, with 9 known CVEs.

Upgrade toFixesStill openNew in that release
2.6.6150newest 2.6 release5 of 129124CVE-2007-4559, CVE-2022-48565, CVE-2016-5636 and 121 morenone
3.15.2newest release120 of 1298 critical9CVE-2026-107784, CVE-2026-115559, CVE-2026-124249 and 6 morenone

"Fixes": CVEs on this page that don't affect that release. "New in that release": CVEs that affect it and not this one.

CVEs affecting Python 2.6.2

Worst first: ranked by Dawnsentry's score for a device that faces the internet (CVSS, plus known exploitation and EPSS). "Fixed in" is the first release that carries the fix, where the source names one.

CVECVSSExploitationEPSSFixed in
CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remote attackers to…9.8Proof of concept27%3.6.16NVD
CVE-2022-48565An XML External Entity (XXE) issue was discovered in Python through 3.9.19.8Proof of concept5%3.6.13NVD
CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 allows remote…9.8None known25%–NVD
CVE-2017-1000158CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyString_DecodeEscape function in stringobject.c, resulting in heap-based buffer…9.8None known8%2.7.15NVD
CVE-2026-115557Distrust compromised intermediate certificates in ssl module9.4None knownunder 1%3.11.18CVE record
CVE-2025-4517Arbitrary writes via tarfile realpath overflow9.4None known1%3.9.23CVE record
CVE-2026-19445Use-after-free of a server-side SSLContext when sni_callback switches contexts9.2None knownunder 1%3.10.22CVE record
CVE-2019-9948urllib in Python 2.x through 2.7.16 supports the local_file: scheme, which makes it easier for remote attackers to bypass protection mechanisms that blacklist…9.1None known12%2.7.17NVD
CVE-2017-17522Lib/webbrowser.py in Python through 3.6.3 does not validate strings before launching the program specified by the BROWSER environment variable, which might…8.8None known4%–NVD
CVE-2026-3298Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes8.8None knownunder 1%3.11.16CVE record
CVE-2024-8088Infinite loop when iterating over zip archive entry names from zipfile.Path8.7None known1%3.8.20CVE record
CVE-2026-82049tarfile extraction filters allow file modification and content disclosure via hard link to symlink8.4None knownunder 1%3.10.22CVE record
CVE-2026-11972tarfile opened in streaming mode mishandles EOF8.2None knownunder 1%3.10.21CVE record
CVE-2026-9669bz2.BZ2Decompressor reuse after error can cause a stack buffer overflow8.2None knownunder 1%3.10.21CVE record
CVE-2026-6100Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure8.1None knownunder 1%3.10.21CVE record
CVE-2024-7592Quadratic complexity parsing cookies with backslashes7.5Proof of concept2%3.8.20CVE record
CVE-2023-36632The legacy email.utils.parseaddr function in Python through 3.11.4 allows attackers to trigger "RecursionError: maximum recursion depth exceeded while calling…7.5Proof of concept2%–NVD
CVE-2022-45061An issue was discovered in Python before 3.11.17.5Proof of concept3%–NVD
CVE-2019-13404The MSI installer for Python through 2.7.16 on Windows defaults to the C:\Python27 directory, which makes it easier for local users to deploy Trojan horse code7.8None known1%–NVD
CVE-2014-1912Buffer overflow in the socket.recvfrom_into function in Modules/socketmodule.c in Python 2.5 before 2.7.7, 3.x before 3.3.4, and 3.4.x before 3.4rc1 allows…7.5None known27%–NVD
CVE-2026-11940tarfile extraction filter bypass allows escaping the destination directory7.8None knownunder 1%3.10.21CVE record
CVE-2024-9287Virtual environment (venv) activation scripts don't quote paths7.8None knownunder 1%3.9.21CVE record
CVE-2023-6597An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior. The…7.8None knownunder 1%3.8.19CVE record
CVE-2023-24329An issue in the urllib.parse component of Python before 3.11.4 allows attackers to bypass blocklisting methods by supplying a URL that starts with blank…7.5None known20%3.7.17NVD
CVE-2026-19553SSLContext.wrap_bio() missing validation of server_hostname parameter7.6None knownunder 1%3.10.22CVE record
CVE-2022-0391A flaw was found in Python, specifically within the urllib.parse module7.5None known9%3.6.14NVD
CVE-2026-15308Incremental HTMLParser feed() allows CPU-exhaustion DoS via repeated unterminated markup declarations7.5None knownunder 1%3.10.21CVE record
CVE-2026-7210The expat and elementtree parsers use insufficient entropy for XML hash-flooding protection7.5None knownunder 1%3.10.22CVE record
CVE-2026-3087shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs7.5None knownunder 1%3.10.21CVE record
CVE-2026-4224Stack overflow parsing XML with deeply nested DTD content models7.5None knownunder 1%3.10.21CVE record
CVE-2026-3644Incomplete control character validation in http.cookies7.5None knownunder 1%3.10.21CVE record
CVE-2025-13836Excessive read buffering DoS in http.client7.5None known2%3.10.20CVE record
CVE-2025-8194Tarfile infinite loop during parsing with negative member offset7.5None knownunder 1%3.9.24CVE record
CVE-2025-4435Tarfile extracts filtered members when errorlevel=07.5None knownunder 1%3.9.23CVE record
CVE-2025-4330Extraction filter bypass for linking outside extraction directory7.5None known1%3.9.23CVE record
CVE-2025-4138Bypassing extraction filter to create symlinks to arbitrary targets outside extraction directory7.5None known1%3.9.23CVE record
CVE-2024-12254Unbounded memory buffering in SelectorSocketTransport.writelines()7.5None known2%3.12.9CVE record
CVE-2024-6232Regular-expression DoS when parsing TarFile headers7.5None known2%3.8.20CVE record
CVE-2024-4032Incorrect IPv4 and IPv6 private ranges7.5None known1%3.8.20CVE record
CVE-2022-48560A use-after-free exists in Python through 3.9 via heappushpop in heapq7.5None known2%3.6.11NVD
CVE-2019-16056An issue was discovered in Python through 2.7.16, 3.x through 3.5.7, 3.6.x through 3.6.9, and 3.7.x through 3.7.47.5None known5%–NVD
CVE-2018-1061python before versions 2.7.15, 3.4.9, 3.5.6rc1, 3.6.5rc1 and 3.7.0 is vulnerable to catastrophic backtracking in the difflib.IS_LINE_JUNK method7.5None known5%2.7.15NVD
CVE-2024-0397Memory race condition in ssl.SSLContext certificate store methods7.4None knownunder 1%3.8.20CVE record
CVE-2015-5652Untrusted search path vulnerability in python.exe in Python through 3.5.0 on Windows allows local users to gain privileges via a Trojan horse readline.pyd file…7.2None knownunder 1%–NVD
CVE-2026-4786Incomplete mitigation of CVE-2026-4519, %action expansion for command injection to webbrowser.open()7.1None knownunder 1%3.10.21CVE record
CVE-2024-4030tempfile.mkdtemp() may be readable and writeable by all users on Windows7.1None knownunder 1%3.8.20CVE record
CVE-2022-26488In Python before 3.10.3 on Windows, local users can gain privileges because the search path is inadequately secured7.0None known1%–NVD
CVE-2026-114583tar filter allows writing outside destination via empty-named symlink6.9None knownunder 1%3.11.18CVE record
CVE-2026-7774tarfile.data_filter path traversal bypass allows writing outside the extraction directory6.9None knownunder 1%3.10.21CVE record
CVE-2008-5983Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepends an empty string to…6.9None knownunder 1%2.6.6NVD
CVE-2024-0450Quoted zip-bomb protection for zipfile6.2Proof of conceptunder 1%3.8.19CVE record
CVE-2016-0772The smtplib library in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 does not return an error when StartTLS fails, which might…6.5None known15%–NVD
CVE-2026-15806`HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching6.0Proof of conceptunder 1%3.10.22CVE record
CVE-2024-5642Buffer overread when using an empty list with SSLContext.set_npn_protocols()6.5None knownunder 1%3.9.24CVE record
CVE-2022-48564read_ints in plistlib.py in Python through 3.9.1 is vulnerable to a potential DoS attack via CPU and RAM exhaustion when processing malformed Apple Property…6.5None known2%3.6.13NVD
CVE-2021-3733There's a flaw in urllib's AbstractBasicAuthHandler class6.5None known5%3.6.14NVD
CVE-2017-18207The Wave_read._read_fmt_chunk function in Lib/wave.py in Python through 3.6.4 does not ensure a nonzero channel value, which allows attackers to cause a denial…6.5None known1%–NVD
CVE-2014-7185Integer overflow in bufferobject.c in Python before 2.7.8 allows context-dependent attackers to obtain sensitive information from process memory via a large…6.4None known5%–NVD
CVE-2026-107784tarfile extraction filters accept drive-relative paths on Windows6.3None known1%3.16.0CVE record
CVE-2025-0938URL parser allowed square brackets in domain names6.3None known2%3.9.22CVE record
CVE-2022-48566An issue was discovered in compare_digest in Lib/hmac.py in Python through 3.9.15.9Proof of concept1%3.6.13NVD
CVE-2021-23336Web Cache Poisoning5.9None known41%3.6.13CVE record
CVE-2026-115559imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS6.3None knownunder 1%3.16.0CVE record
CVE-2026-124249`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation6.3None knownunder 1%3.16.0a2CVE record
CVE-2026-19672tarfile extraction filter bypass allows creation of directories outside the destination6.3None knownunder 1%3.16.0CVE record
CVE-2026-3276Potential DoS via quadratic complexity in unicodedata.normalize()6.3None knownunder 1%3.10.21CVE record
CVE-2016-5699CRLF injection vulnerability in the HTTPConnection.putheader function in urllib2 and urllib in CPython (aka Python) before 2.7.10 and 3.x before 3.4.4 allows…6.1None known11%–NVD
CVE-2026-6019BaseCookie.js_output() does not neutralize embedded characters6.1None knownunder 1%3.13.14CVE record
CVE-2019-18348An issue was discovered in urllib2 in Python 2.x through 2.7.17 and urllib in Python 3.x through 3.8.06.1None known3%–NVD
CVE-2019-9740An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.36.1None known5%2.7.17NVD
CVE-2026-17084stringprep.map_table_b2() deviates from RFC 3454 Table B.26.0None knownunder 1%3.10.22CVE record
CVE-2026-3446Base64 decoding stops at first padded quad by default6.0None knownunder 1%3.13.13CVE record
CVE-2026-1299email BytesGenerator header injection due to unquoted newlines6.0None knownunder 1%3.10.20CVE record
CVE-2026-0672Header injection in http.cookies.Morsel6.0None knownunder 1%3.10.20CVE record
CVE-2025-15282Header injection via newlines in data URL mediatype6.0None knownunder 1%3.10.20CVE record
CVE-2024-6923Email header injection due to unquoted newlines5.5Proof of concept1%3.8.20CVE record
CVE-2026-12345Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory5.9None knownunder 1%3.12.15CVE record
CVE-2026-8328FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address5.9None knownunder 1%3.10.21CVE record
CVE-2026-0865wsgiref.headers.Headers allows header newline injection5.9None knownunder 1%3.10.20CVE record
CVE-2025-15367POP3 command injection in user-controlled commands5.9None knownunder 1%3.15.0a6CVE record
CVE-2025-15366IMAP command injection in user-controlled commands5.9None knownunder 1%3.13.15CVE record
CVE-2025-4516Use-after-free in "unicode_escape" decoder with error handler5.9None knownunder 1%3.9.23CVE record
CVE-2023-27043The email module of Python through 3.11.3 incorrectly parses e-mail addresses that contain a special character5.3Proof of concept3%–NVD
CVE-2013-7440The ssl.match_hostname function in CPython (aka Python) before 2.7.9 and 3.x before 3.3.3 does not properly handle wildcards in hostnames, which might allow…5.9None known2%–NVD
CVE-2014-9365The HTTP clients in the (1) httplib, (2) urllib, (3) urllib2, and (4) xmlrpclib libraries in CPython (aka Python) 2.x before 2.7.9 and 3.x before 3.4.3, when…5.8None known3%–NVD
CVE-2026-87910tarfile hardlink fallback ignores custom extraction filter rejection via None5.7None knownunder 1%3.10.22CVE record
CVE-2026-1502HTTP client proxy tunnel headers not validated for CR/LF5.7None knownunder 1%3.10.21CVE record
CVE-2025-11468Folding email comments of unfoldable characters doesn't preserve parenthesis5.7None knownunder 1%3.10.20CVE record
CVE-2024-12718Bypass extraction filter to modify file metadata outside extraction directory5.3Proof of conceptunder 1%3.9.23CVE record
CVE-2021-3426There's a flaw in Python 3's pydoc5.7None known2%2.7.18NVD
CVE-2026-0864Configuration Injection via Carriage Return (\r) in write() method5.5None knownunder 1%3.10.21CVE record
CVE-2026-2297SourcelessFileLoader does not use io.open_code()5.5None knownunder 1%3.10.21CVE record
CVE-2025-13837Out-of-memory when loading Plist5.5None knownunder 1%3.10.20CVE record
CVE-2025-6075Quadratic complexity in os.path.expandvars() with user-controlled template5.5None knownunder 1%3.9.25CVE record
CVE-2026-115791Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction5.3None knownunder 1%3.16.0CVE record
CVE-2026-116566socket.getaddrinfo() accepts embedded null bytes in host and port5.3None knownunder 1%3.16.0CVE record
CVE-2026-4360Tarfile.extract() doesn't fully respect filter parameter5.3None knownunder 1%3.10.21CVE record
CVE-2026-12003CPython >3.11 Insecure Input Validation resulting in privilege escalation5.3None knownunder 1%3.11.16CVE record
CVE-2026-5713Out-of-bounds read/write during remote profiling and asyncio process introspection when connecting to malicious target5.3None knownunder 1%3.14.5CVE record
CVE-2025-12781base64.b64decode() always accepts "+/" characters, despite setting altchars5.3None knownunder 1%3.13.10CVE record
CVE-2025-12084Quadratic complexity in node ID cache clearing5.3None knownunder 1%3.10.20CVE record
CVE-2023-40217An issue was discovered in Python before 3.8.18, 3.9.x before 3.9.18, 3.10.x before 3.10.13, and 3.11.x before 3.11.55.3None knownunder 1%3.8.18NVD
CVE-2024-3219Pure-Python fallback of socket.socketpair() doesn’t authenticate peer connection5.1None knownunder 1%3.8.20CVE record
CVE-2012-1150Python before 2.6.8, 2.7.x before 2.7.3, 3.x before 3.1.5, and 3.2.x before 3.2.3 computes hash values without restricting the ability to trigger hash…5.0None known5%–NVD
CVE-2012-0845SimpleXMLRPCServer.py in SimpleXMLRPCServer in Python before 2.6.8, 2.7.x before 2.7.3, 3.x before 3.1.5, and 3.2.x before 3.2.3 allows remote attackers to…5.0None known5%–NVD
CVE-2010-2089The audioop module in Python 2.7 and 3.2 does not verify the relationships between size arguments and byte string lengths, which allows context-dependent…5.0None known15%2.6.6NVD
CVE-2010-3492The asyncore module in Python before 3.2 does not properly handle unsuccessful calls to the accept function, and does not have accompanying documentation…5.0None known3%–NVD
CVE-2010-1634Multiple integer overflows in audioop.c in the audioop module in Python 2.6, 2.7, 3.1, and 3.2 allow context-dependent attackers to cause a denial of service…5.0None known4%2.6.6NVD
CVE-2023-6507Groups not dropped before running subprocess when using empty 'extra_groups' parameter4.9None known1%3.12.1CVE record
CVE-2025-8291ZIP64 End of Central Directory (EOCD) Locator record offset not checked4.3Proof of conceptunder 1%3.9.24CVE record
CVE-2018-20852http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can be tricked into…4.3None known4%–NVD
CVE-2013-4238The ssl.match_hostname function in the SSL module in Python 2.6 through 3.4 does not properly handle a '\0' character in a domain name in the Subject…4.3None known5%–NVD
CVE-2012-0876The XML parser (xmlparse.c) in expat before 2.1.0 computes hash values without restricting the ability to trigger hash collisions predictably, which allows…4.3None known6%2.6.8NVD
CVE-2025-6069HTMLParser quadratic complexity when processing malformed inputs4.3None knownunder 1%3.9.24CVE record
CVE-2024-11168Improper validation of IPv6 and IPvFuture addresses3.7None knownunder 1%3.9.21CVE record
CVE-2018-1000030Python 2.7.14 is vulnerable to a Heap-Buffer-Overflow as well as a Heap-Use-After-Free3.6None known1%–NVD
CVE-2026-4519webbrowser.open() allows leading dashes in URLs3.3None knownunder 1%3.10.21CVE record
CVE-2025-13462tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling3.3None knownunder 1%3.10.21CVE record
CVE-2011-4940The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5.6c1, 2.6.x before 2.6.7 rc2, and 2.7.x before 2.7.2 does not…2.6None known3%2.6.7NVD
CVE-2026-18503Super-linear CPU usage for unbounded input to csv.Sniffer.sniff()2.4None knownunder 1%3.10.21CVE record
CVE-2026-16052Cookie Attribute Injection via Unescaped Semicolons in http.cookies.Morsel2.3None knownunder 1%3.16.0CVE record
CVE-2025-1795Mishandling of comma during folding and unicode-encoding of email headers2.3None knownunder 1%3.9.23CVE record
CVE-2024-3220Default mimetype known files writeable on Windows2.3None knownunder 1%3.11.18CVE record
CVE-2026-15310zipfile: bzip2/LZMA/Zstandard members decompress without a max_length bound, defeating chunked-read memory limits2.1None knownunder 1%3.10.22CVE record
CVE-2026-103995Lenient parsing of integers for response body and chunk framing2.0None knownunder 1%3.16.0CVE record
CVE-2026-6879Quadratic Behavior in xml.etree.ElementPath Index Predicates2.0None knownunder 1%3.10.21CVE record
CVE-2011-4944Python 2.6 through 3.2 creates ~/.pypirc with world-readable permissions before changing them after data has been written, which introduces a race condition…1.9None knownunder 1%–NVD
CVE-2026-19552ssl.get_server_certificate(addr, ca_certs=...) verifies the chain but never the identity0.0None knownunder 1%3.16.0a2CVE record
CVE-2026-3479pkgutil.get_data() does not enforce documented restrictions0.0None knownunder 1%3.13.13CVE record

Fixed since 2.6.1

1 CVE that affects 2.6.1, the release before it, does not affect 2.6.2:

  • CVE-2011-1521 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… CVSS 6.4

Support for the 2.6 line

The 2.6 line was first released 1 October 2008. Security fixes for it ended 29 October 2013, so vulnerabilities found since then stay open on every 2.6 release. Its latest release is 2.6.6150. Dates from endoflife.date.

Other Python 2.6 releases

2.6.6150124 2.6.2150124 2.6.9118 2.6.8122 2.6.7126 2.6.6127 2.6.5130 2.6.4130 2.6.3129 2.6.1130

All Python versions

How this list is made

These are the CVEs Dawnsentry matches to each Python version, with the same engine its customers use. Where the vendor publishes its own advisory, that decides whether a version is affected, down to hotfix level; otherwise the CVE record and NVD's version data decide. CVSS comes from NVD or the reporting organisation, exploitation from CISA's Known Exploited Vulnerabilities catalogue, CISA's ratings, Metasploit and Nuclei, and EPSS (the probability of exploitation in the next 30 days) from FIRST. The list is rebuilt every day. Always confirm against the vendor's advisory before you act on it.

Updated 2 December 2026.