Python runtime vulnerabilities

Python is a language runtime (its releases): every project written for it is exposed to its vulnerabilities, whatever packages it uses. Its advisories come from the NVD. We track 2 of its versions: 2 of them have known vulnerabilities.

Every version we track has a known vulnerability, or has not been checked yet.

Check the advisories below for the version that fixes them.

Vulnerabilities by version

VersionKnown vulnerabilitiesHighest severityLicence
3.12.16 9 High
3.11.14 12 High

Recent advisories for Python

  • Critical CVSS 9.8

    CVE-2014-4650: The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which allows remote attackers to read script source code or...

  • Critical CVSS 9.8

    CVE-2016-0718: Expat allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a malformed input document, which triggers a buffer overflow.

  • Critical CVSS 9.8

    CVE-2016-5636: Integer 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 attackers to have unspecified impact via a...

  • Critical CVSS 9.8

    CVE-2016-9063: An integer overflow during the parsing of XML using the Expat library.

  • Critical CVSS 9.8

    CVE-2017-1000158: CPython (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 overflow (and possible arbitrary code...

  • Critical CVSS 9.8

    CVE-2018-1000802: Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in shutil module...

  • Critical CVSS 9.8

    CVE-2019-10160: A security regression of CVE-2019-9636 was discovered in python since commit d537ab0ff9767ef024f26246899728f0116b1ec3 affecting versions 2.7, 3.5, 3.6, 3.7 and from v3.8.0a4 through v3.8.0b1,...

  • Critical CVSS 9.8

    CVE-2019-12900: BZ2_decompress in decompress.c in bzip2 through 1.0.6 has an out-of-bounds write when there are many selectors.

  • Critical CVSS 9.8

    CVE-2019-9636: Python 2.7.x through 2.7.16 and 3.x through 3.7.2 is affected by: Improper Handling of Unicode Encoding (with an incorrect netloc) during NFKC normalization.

  • Critical CVSS 9.1

    CVE-2019-9948: urllib 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 file: URIs, as demonstrated by...

  • Critical CVSS 9.8

    CVE-2020-15801: In Python 3.8.4, sys.path restrictions specified in a python38._pth file are ignored, allowing code to be loaded from arbitrary locations.

  • Critical CVSS 9.8

    CVE-2020-27619: In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.

  • Critical CVSS 9.8

    CVE-2021-29921: In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string.

  • Critical CVSS 9.8

    CVE-2021-3177: Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as...

  • Critical CVSS 9.8

    CVE-2022-37454: The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected...

  • Critical CVSS 9.8

    CVE-2022-48565: An XML External Entity (XXE) issue was discovered in Python through 3.9.1.

  • High CVSS 7.5

    CVE-2013-1753: The gzip_decode function in the xmlrpc client library in Python 3.4 and earlier allows remote attackers to cause a denial of service (memory consumption) via a crafted HTTP request.

  • High CVSS 7.4

    CVE-2014-0224: OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCipherSpec messages, which allows man-in-the-middle attackers to trigger use of...

  • High CVSS 7.6

    CVE-2015-20107: In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters into commands discovered in the system mailcap file.

  • High CVSS 7.2

    CVE-2015-5652: Untrusted 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 in the current working directory.

  • High CVSS 7.5

    CVE-2016-2183: The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other protocols and products, have a birthday bound of approximately four billion blocks, which makes it easier for...

  • High CVSS 8.1

    CVE-2016-4472: The overflow protection in Expat is removed by compilers with certain optimization settings, which allows remote attackers to cause a denial of service (crash) or possibly execute arbitrary code...

  • High CVSS 8.8

    CVE-2017-17522: Lib/webbrowser.py in Python through 3.6.3 does not validate strings before launching the program specified by the BROWSER environment variable, which might allow remote attackers to conduct...

  • High CVSS 7.8

    CVE-2017-20052: A vulnerability classified as problematic was found in Python 2.7.13.

  • High CVSS 7.5

    CVE-2017-9233: XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser Library) allows attackers to put the parser in an infinite loop using a malformed external entity definition from...

  • High CVSS 7.5

    CVE-2018-1060: python before versions 2.7.15, 3.4.9, 3.5.6rc1, 3.6.5rc1 and 3.7.0 is vulnerable to catastrophic backtracking in pop3lib's apop() method.

  • High CVSS 7.5

    CVE-2018-1061: python 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 method.

  • High CVSS 7.5

    CVE-2018-14647: Python's elementtree C accelerator failed to initialise Expat's hash salt during initialization.

  • High CVSS 7.5

    CVE-2018-20406: Modules/_pickle.c in Python before 3.7.1 has an integer overflow via a large LONG_BINPUT value that is mishandled during a "resize to twice the size" attempt.

  • High CVSS 7.5

    CVE-2018-25032: zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.

  • High CVSS 7.8

    CVE-2019-13404: The 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 code.

  • High CVSS 7.5

    CVE-2019-15903: In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too early; a consecutive call to XML_GetCurrentLineNumber (or...

  • High CVSS 7.5

    CVE-2019-16056: An 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.4.

  • High CVSS 7.5

    CVE-2019-17514: library/glob.html in the Python 2 and 3 documentation before 2016 has potentially misleading information about whether sorting occurs, as demonstrated by irreproducible cancer-research results.

  • High CVSS 7.5

    CVE-2019-20907: In Lib/tarfile.py in Python through 3.8.3, an attacker is able to craft a TAR archive leading to an infinite loop when opened by tarfile.open, because _proc_pax lacks header validation.

  • High CVSS 7.5

    CVE-2019-5010: An exploitable denial-of-service vulnerability exists in the X509 certificate parser of Python.org Python 2.7.11 / 3.6.6.

  • High CVSS 7.5

    CVE-2019-9674: Lib/zipfile.py in Python through 3.7.2 allows remote attackers to cause a denial of service (resource consumption) via a ZIP bomb.

  • High CVSS 7.5

    CVE-2020-10735: A flaw was found in python.

  • High CVSS 7.8

    CVE-2020-15523: In Python 3.6 through 3.6.10, 3.7 through 3.7.8, 3.8 through 3.8.4rc1, and 3.9 through 3.9.0b4 on Windows, a Trojan horse python3.dll might be used in cases where CPython is embedded in a native...

  • High CVSS 7.2

    CVE-2020-26116: http.client in Python 3.x before 3.5.10, 3.6.x before 3.6.12, 3.7.x before 3.7.9, and 3.8.x before 3.8.5 allows CRLF injection if the attacker controls the HTTP request method, as demonstrated by...

  • High CVSS 7.4

    CVE-2021-28861: Python 3.x through 3.10 has an open redirection vulnerability in lib/http/server.py due to no protection against multiple (/) at the beginning of URI path which may leads to information disclosure.

  • High CVSS 7.5

    CVE-2021-3737: A flaw was found in python.

  • High CVSS 7.5

    CVE-2022-0391: A flaw was found in Python, specifically within the urllib.parse module.

  • High CVSS 7.0

    CVE-2022-26488: In Python before 3.10.3 on Windows, local users can gain privileges because the search path is inadequately secured.

  • High CVSS 7.8

    CVE-2022-42919: Python 3.9.x before 3.9.16 and 3.10.x before 3.10.9 on Linux allows local privilege escalation in a non-default configuration.

  • High CVSS 7.5

    CVE-2022-45061: An issue was discovered in Python before 3.11.1.

  • High CVSS 7.5

    CVE-2022-48560: A use-after-free exists in Python through 3.9 via heappushpop in heapq.

  • High CVSS 7.5

    CVE-2023-24329: An 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 characters.

  • High CVSS 7.5

    CVE-2023-36632: The legacy email.utils.parseaddr function in Python through 3.11.4 allows attackers to trigger "RecursionError: maximum recursion depth exceeded while calling a Python object" via a crafted argument.

  • High CVSS 7.5

    CVE-2023-41105: An issue was discovered in Python 3.11 through 3.11.4.

  • High CVSS 7.5

    CVE-2024-6232: There is a MEDIUM severity vulnerability affecting CPython.

  • High CVSS 7.5

    CVE-2024-7592: There is a LOW severity vulnerability affecting CPython, specifically the 'http.cookies' standard library module.

  • High CVSS 7.8

    CVE-2024-9287: A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands...

  • High CVSS 7.5

    CVE-2025-13836: When reading an HTTP response from a server, if no read amount is specified, the default behavior will be to use Content-Length.

    Affects 3.11.14 (of the versions we track).

  • High CVSS 7.5

    CVE-2026-15308: The incremental HTML parser (html.parser.HTMLParser) allows for CPU denial-of-service through repeated unterminated markup declarations when processing uncontrolled data.

    Affects 3.11.14 (of the versions we track).

  • High CVSS 7.5

    CVE-2026-3087: If `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a drive (`C:\\...`) then the archive will be extracted outside the target directory which is different...

    Affects 3.12.16, 3.11.14 (of the versions we track).

  • High CVSS 7.5

    CVE-2026-3644: The fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel, was incomplete.

    Affects 3.12.16, 3.11.14 (of the versions we track).

  • High CVSS 7.5

    CVE-2026-4224: When an Expat parser with a registered ElementDeclHandler parses an inline document type definition containing a deeply nested content model a C stack overflow occurs.

  • High CVSS 7.5

    CVE-2026-7210: `xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger hash flooding.\r\n\r\nFully mitigating...

    Affects 3.12.16, 3.11.14 (of the versions we track).

  • Medium CVSS 5.9

    CVE-2013-7440: The 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 man-in-the-middle attackers to spoof...

  • Medium CVSS 5.9

    CVE-2014-4616: Array index error in the scanstring function in the _json module in Python 2.7 through 3.5 and simplejson before 2.6.1 allows context-dependent attackers to read arbitrary process memory via a...

  • Medium CVSS 6.4

    CVE-2014-7185: Integer overflow in bufferobject.c in Python before 2.7.8 allows context-dependent attackers to obtain sensitive information from process memory via a large size and offset in a "buffer" function.

  • Medium CVSS 5.8

    CVE-2014-9365: The 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 accessing an HTTPS URL, do not (a)...

  • Medium CVSS 6.8

    CVE-2015-1283: Multiple integer overflows in the XML_GetBuffer function in Expat through 2.1.0, as used in Google Chrome before 44.0.2403.89 and other products, allow remote attackers to cause a denial of...

  • Medium CVSS 6.5

    CVE-2016-0772: The 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 allow man-in-the-middle attackers to...

  • Medium CVSS 6.1

    CVE-2016-1000110: The CGIHandler class in Python before 2.7.12 does not protect against the HTTP_PROXY variable name clash in a CGI script, which could allow a remote attacker to redirect HTTP requests.

  • Medium CVSS 6.5

    CVE-2016-3189: Use-after-free vulnerability in bzip2recover in bzip2 1.0.6 allows remote attackers to cause a denial of service (crash) via a crafted bzip2 file, related to block ends set to before the start of...

  • Medium CVSS 6.1

    CVE-2016-5699: CRLF 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 remote attackers to inject arbitrary...

  • Medium CVSS 6.5

    CVE-2017-18207: The 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 of service (divide-by-zero and...

  • Medium CVSS 6.7

    CVE-2018-1000117: Python Software Foundation CPython version From 3.2 until 3.6.4 on Windows contains a Buffer Overflow vulnerability in os.symlink() function on Windows that can result in Arbitrary code execution,...

  • Medium CVSS 4.3

    CVE-2018-20852: http.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 sending existing cookies to the wrong...

  • Medium CVSS 6.1

    CVE-2019-16935: The documentation XML-RPC server in Python through 2.7.16, 3.x through 3.6.9, and 3.7.x through 3.7.4 has XSS via the server_title field.

  • Medium CVSS 6.1

    CVE-2019-18348: An issue was discovered in urllib2 in Python 2.x through 2.7.17 and urllib in Python 3.x through 3.8.0.

  • Medium CVSS 6.1

    CVE-2019-9740: An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.3.

  • Medium CVSS 6.1

    CVE-2019-9947: An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.3.

  • Medium CVSS 5.9

    CVE-2020-14422: Lib/ipaddress.py in Python through 3.8.3 improperly computes hash values in the IPv4Interface and IPv6Interface classes, which might allow a remote attacker to cause a denial of service if an...

  • Medium CVSS 5.5

    CVE-2020-8315: In Python (CPython) 3.6 through 3.6.10, 3.7 through 3.7.6, and 3.8 through 3.8.1, an insecure dependency load upon launch on Windows 7 may result in an attacker's copy of...

  • Medium CVSS 6.5

    CVE-2020-8492: Python 2.7 through 2.7.17, 3.5 through 3.5.9, 3.6 through 3.6.10, 3.7 through 3.7.6, and 3.8 through 3.8.1 allows an HTTP server to conduct Regular Expression Denial of Service (ReDoS) attacks...

  • Medium CVSS 5.9

    CVE-2021-23336: The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9.0 and before 3.9.2 are vulnerable to Web Cache Poisoning via...

  • Medium CVSS 5.7

    CVE-2021-3426: There's a flaw in Python 3's pydoc.

  • Medium CVSS 6.5

    CVE-2021-3733: There's a flaw in urllib's AbstractBasicAuthHandler class.

  • Medium CVSS 5.3

    CVE-2021-4189: A flaw was found in Python, specifically in the FTP (File Transfer Protocol) client library in PASV (passive) mode.

  • Medium CVSS 6.5

    CVE-2022-48564: read_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 List files in binary format.

  • Medium CVSS 5.9

    CVE-2022-48566: An issue was discovered in compare_digest in Lib/hmac.py in Python through 3.9.1.

  • Medium CVSS 5.3

    CVE-2023-27043: The email module of Python through 3.11.3 incorrectly parses e-mail addresses that contain a special character.

  • Medium CVSS 5.5

    CVE-2023-33595: CPython v3.12.0 alpha 7 was discovered to contain a heap use-after-free via the function ascii_decode at /Objects/unicodeobject.c.

  • Medium CVSS 5.3

    CVE-2023-38898: An issue in Python cpython v.3.7 allows an attacker to obtain sensitive information via the _asyncio._swap_current_task component.

  • Medium CVSS 5.3

    CVE-2023-40217: An 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.5.

  • Medium CVSS 4.9

    CVE-2023-6507: An issue was found in CPython 3.12.0 `subprocess` module on POSIX platforms.

  • Medium CVSS 5.3

    CVE-2025-12084: When building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on _clear_id_cache() the algorithm is quadratic.

    Affects 3.12.16, 3.11.14 (of the versions we track).

  • Medium CVSS 5.3

    CVE-2025-12781: When passing data to the b64decode(), standard_b64decode(), and urlsafe_b64decode() functions in the "base64" module the characters "+/" will always be accepted, regardless of the value of...

    Affects 3.12.16, 3.11.14 (of the versions we track).

  • Medium CVSS 5.5

    CVE-2025-13837: When loading a plist file, the plistlib module reads data in size specified by the file itself, meaning a malicious file can cause OOM and DoS issues

    Affects 3.12.16, 3.11.14 (of the versions we track).

  • Medium CVSS 5.5

    CVE-2025-6075: If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.

  • Medium CVSS 5.5

    CVE-2026-0864: When using the "configparser" module to write configuration files containing multi-line text values with carriage return characters (\r) the resulting file could be injected with unexpected keys...

    Affects 3.11.14 (of the versions we track).

  • Medium CVSS 5.3

    CVE-2026-4360: In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks.

  • Medium CVSS 6.1

    CVE-2026-6019: http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string context.

    Affects 3.12.16, 3.11.14 (of the versions we track).

  • Low CVSS 3.3

    CVE-2014-2667: Race condition in the _get_masked_mode function in Lib/os.py in Python 3.2 through 3.5, when exist_ok is set to true and multiple threads are used, might allow local users to bypass intended file...

  • Low CVSS 3.6

    CVE-2018-1000030: Python 2.7.14 is vulnerable to a Heap-Buffer-Overflow as well as a Heap-Use-After-Free.

  • Low CVSS 3.3

    CVE-2025-13462: The "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member such as GNUTYPE_LONGNAME or GNUTYPE_LONGLINK.

    Affects 3.12.16, 3.11.14 (of the versions we track).

  • Low CVSS 3.3

    CVE-2026-4519: The webbrowser.open() API would accept leading dashes in the URL which could be handled as command line options for certain web browsers.

    Affects 3.12.16, 3.11.14 (of the versions we track).

Check your whole project

Python is one package among hundreds in a lockfile. Upload your lockfile, or paste a public GitHub repository, and get every vulnerable package with the version that fixes it. Free, and no account needed.

About this data

Vulnerability data: the NVD, last checked 22 November 2026. Licences: deps.dev. These pages list the versions AIssue checks every day for the projects it monitors, not every version ever released.