2084AI Security Observatory

Infrastructure vulnerabilities

Python (CPython)

Python Software Foundation · 30 CVE · Critical 1 · High 13 · In CISA KEV 0

0510152023: 1 critical, 11 other20232024: 0 critical, 3 other20242025: 0 critical, 4 other20252026: 0 critical, 11 other2026
High and belowCriticalTracked CVEs by year published

Check your version

e.g. 3.11.4 — run python3 --version

All tracked CVEs · 30

  • CVE-2026-15308HIGH 7.52026-07-10EPSS 1%

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

    • 3.15.0-beta3This version only
    • 3.15.0-beta2This version only
    • 3.15.0-beta1This version only
    • 3.15.0-alpha8This version only
    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.7Fixed in 3.14.7
    • ≥ 3.13.0, < 3.13.15Fixed in 3.13.15
    • ≥ 3.12.0, < 3.12.14Fixed in 3.12.14
    • ≥ 3.11.0, < 3.11.16Fixed in 3.11.16
    • < 3.10.21Fixed in 3.10.21
  • CVE-2026-4360MED 5.32026-06-30EPSS 0%

    In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract…

    • < 3.1.5Fixed in 3.1.5
  • CVE-2026-0864MED 5.52026-06-24EPSS 0%

    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 and values if the attacker controls the written value.

    • 3.15.0-beta3This version only
    • 3.15.0-beta2This version only
    • 3.15.0-beta1This version only
    • 3.15.0-alpha8This version only
    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.7Fixed in 3.14.7
    • ≥ 3.13.0, < 3.13.15Fixed in 3.13.15
    • ≥ 3.12.0, < 3.12.14Fixed in 3.12.14
    • ≥ 3.11.0, < 3.11.16Fixed in 3.11.16
    • < 3.10.21Fixed in 3.10.21
  • CVE-2026-7210HIGH 7.52026-05-12EPSS 1%

    `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 this vulnerability requires both updating libexpat to 2.8.0 or later and applying th…

    • 3.15.0-beta1This version only
    • 3.15.0-alpha8This version only
    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.6Fixed in 3.14.6
    • < 3.13.14Fixed in 3.13.14
  • CVE-2026-3087HIGH 7.52026-04-28EPSS 1%

    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 than other operating systems. Only Windows is affected by this vulnerability.

    • 3.15.0-alpha8This version only
    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≤ 3.14.4Affected up to 3.14.4 — see vendor advisory
  • CVE-2026-6019MED 6.12026-04-23EPSS 0%

    http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string context. It does not neutralize the HTML parser-sensitive sequence </script> inside the generated script element. Mitigation base64-encodes the cookie value to disallow es…

    • 3.15.0-alpha8This version only
    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, ≤ 3.14.4Affected up to 3.14.4 — see vendor advisory
    • < 3.13.14Fixed in 3.13.14
  • CVE-2026-4519LOW 3.32026-03-20EPSS 0%

    The webbrowser.open() API would accept leading dashes in the URL which could be handled as command line options for certain web browsers. New behavior rejects leading dashes. Users are recommended to sanitize URLs prior to passing to webbrowser.open().

    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.4Fixed in 3.14.4
    • < 3.13.13Fixed in 3.13.13
  • CVE-2026-4224HIGH 7.52026-03-17EPSS 1%

    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.

    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.4Fixed in 3.14.4
    • ≥ 3.13.0, < 3.13.13Fixed in 3.13.13
    • < 3.10.0Fixed in 3.10.0
  • CVE-2026-3644HIGH 7.52026-03-17EPSS 1%

    The fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel, was incomplete. The Morsel.update(), |= operator, and unpickling paths were not patched, allowing control characters to bypass input validation. Additionally, BaseCookie.js_output() lacked the o…

    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.4Fixed in 3.14.4
    • < 3.13.13Fixed in 3.13.13
  • CVE-2025-13462LOW 3.32026-03-13EPSS 0%

    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. This could result in a crafted tar archive being misinterpreted by the tarfile module compared to o…

    • 3.15.0-alpha7This version only
    • 3.15.0-alpha6This version only
    • 3.15.0-alpha5This version only
    • 3.15.0-alpha4This version only
    • 3.15.0-alpha3This version only
    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.4Fixed in 3.14.4
    • < 3.13.13Fixed in 3.13.13
  • CVE-2025-12781MED 5.32026-01-22EPSS 1%

    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 "altchars" parameter, typically used to establish an "alternative base64 alphabet" such as…

    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.1Fixed in 3.14.1
    • < 3.13.10Fixed in 3.13.10
  • CVE-2025-12084MED 5.32025-12-04EPSS 1%

    When building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on _clear_id_cache() the algorithm is quadratic. Availability can be impacted when building excessively nested documents.

    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.2Fixed in 3.14.2
    • < 3.13.11Fixed in 3.13.11
  • CVE-2025-13837MED 5.52025-12-02EPSS 0%

    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

    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.1Fixed in 3.14.1
    • < 3.13.10Fixed in 3.13.10
  • CVE-2025-13836HIGH 7.52025-12-02EPSS 2%

    When reading an HTTP response from a server, if no read amount is specified, the default behavior will be to use Content-Length. This allows a malicious server to cause the client to read large amounts of data into memory, potentially causing OOM or other DoS.

    • 3.15.0-alpha2This version only
    • 3.15.0-alpha1This version only
    • 3.14.0This version only
    • ≥ 3.13.0, < 3.13.11Fixed in 3.13.11
    • ≥ 3.12.0, < 3.12.13Fixed in 3.12.13
    • ≥ 3.11.0, < 3.11.15Fixed in 3.11.15
    • < 3.10.20Fixed in 3.10.20
  • CVE-2025-6075MED 5.52025-11-01EPSS 0%

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

    • 3.15.0-alpha1This version only
    • ≥ 3.14.0, < 3.14.1Fixed in 3.14.1
    • ≥ 3.13.1, < 3.13.11Fixed in 3.13.11
    • < 3.9.0Fixed in 3.9.0
  • CVE-2024-9287HIGH 7.82024-10-23EPSS 1%

    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 into virtual environment "activation" scripts (ie "source venv/bin/activate"). This…

    • 3.14.0-alpha1This version only
    • ≥ 3.13.0, < 3.13.1Fixed in 3.13.1
    • ≥ 3.12.0, < 3.12.8Fixed in 3.12.8
    • ≥ 3.11.0, < 3.11.11Fixed in 3.11.11
    • ≥ 3.10.0, < 3.10.16Fixed in 3.10.16
    • < 3.9.21Fixed in 3.9.21
  • CVE-2024-6232HIGH 7.52024-09-03EPSS 2%

    There is a MEDIUM severity vulnerability affecting CPython. Regular expressions that allowed excessive backtracking during tarfile.TarFile header parsing are vulnerable to ReDoS via specifically-crafted tar archives.

    • 3.13.0-rc1This version only
    • 3.13.0-beta4This version only
    • 3.13.0-beta3This version only
    • 3.13.0-beta2This version only
    • 3.13.0-beta1This version only
    • 3.13.0-alpha6This version only
    • 3.13.0-alpha5This version only
    • 3.13.0-alpha4This version only
    • 3.13.0-alpha3This version only
    • 3.13.0-alpha2This version only
    • 3.13.0-alpha1This version only
    • 3.13.0-alpha0This version only
    • ≥ 3.12.0, < 3.12.6Fixed in 3.12.6
    • ≥ 3.11.0, < 3.11.10Fixed in 3.11.10
    • ≥ 3.10.0, < 3.10.15Fixed in 3.10.15
    • ≥ 3.9.0, < 3.9.20Fixed in 3.9.20
    • < 3.8.20Fixed in 3.8.20
  • CVE-2024-7592HIGH 7.52024-08-20EPSS 2%

    There is a LOW severity vulnerability affecting CPython, specifically the 'http.cookies' standard library module. When parsing cookies that contained backslashes for quoted characters in the cookie value, the parser would use an algorithm with quadratic complexity, resulting in…

    • 3.13.0-rc1This version only
    • 3.13.0-beta4This version only
    • 3.13.0-beta3This version only
    • 3.13.0-beta2This version only
    • 3.13.0-beta1This version only
    • 3.13.0-alpha6This version only
    • 3.13.0-alpha5This version only
    • 3.13.0-alpha4This version only
    • 3.13.0-alpha3This version only
    • 3.13.0-alpha2This version only
    • 3.13.0-alpha1This version only
    • 3.13.0-alpha0This version only
    • ≥ 3.12.0, < 3.12.6Fixed in 3.12.6
    • ≥ 3.11.0, < 3.11.10Fixed in 3.11.10
    • ≥ 3.10.0, < 3.10.15Fixed in 3.10.15
    • ≥ 3.9.0, < 3.9.20Fixed in 3.9.20
    • < 3.8.20Fixed in 3.8.20
  • CVE-2023-6507MED 4.92023-12-09EPSS 1%

    An issue was found in CPython 3.12.0 `subprocess` module on POSIX platforms. The issue was fixed in CPython 3.12.1 and does not affect other stable releases. When using the `extra_groups=` parameter with an empty list as a value (ie `extra_groups=[]`) the logic regressed to not…

    • 3.13.0-alpha2This version only
    • 3.13.0-alpha1This version only
    • 3.12.0This version only
  • CVE-2023-40217MED 5.32023-08-25EPSS 1%

    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. It primarily affects servers (such as HTTP servers) that use TLS client authentication. If a TLS server-side socket is created, receives data into the socket bu…

    • ≥ 3.11.0, < 3.11.5Fixed in 3.11.5
    • ≥ 3.10.0, < 3.10.13Fixed in 3.10.13
    • ≥ 3.9.0, < 3.9.18Fixed in 3.9.18
    • < 3.8.18Fixed in 3.8.18
  • CVE-2023-41105HIGH 7.52023-08-23EPSS 2%

    An issue was discovered in Python 3.11 through 3.11.4. If a path containing '\0' bytes is passed to os.path.normpath(), the path will be truncated unexpectedly at the first '\0' byte. There are plausible cases in which an application would have rejected a filename for security r…

    • ≥ 3.11.0, ≤ 3.11.4Affected up to 3.11.4 — see vendor advisory
  • CVE-2022-48566MED 5.92023-08-23EPSS 1%

    An issue was discovered in compare_digest in Lib/hmac.py in Python through 3.9.1. Constant-time-defeating optimisations were possible in the accumulator variable in hmac.compare_digest.

    • ≥ 3.9.0, < 3.9.1Fixed in 3.9.1
    • ≥ 3.8.0, < 3.8.7Fixed in 3.8.7
    • ≥ 3.7.0, < 3.7.10Fixed in 3.7.10
    • < 3.6.13Fixed in 3.6.13
  • CVE-2022-48565CRIT 9.82023-08-23EPSS 5%

    An XML External Entity (XXE) issue was discovered in Python through 3.9.1. The plistlib module no longer accepts entity declarations in XML plist files to avoid XML vulnerabilities.

    • ≥ 3.9.0, < 3.9.1Fixed in 3.9.1
    • ≥ 3.8.0, < 3.8.7Fixed in 3.8.7
    • ≥ 3.7.0, < 3.7.10Fixed in 3.7.10
    • < 3.6.13Fixed in 3.6.13
  • CVE-2022-48564MED 6.52023-08-23EPSS 2%

    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.

    • ≥ 3.9.0, < 3.9.1Fixed in 3.9.1
    • ≥ 3.8.0, < 3.8.7Fixed in 3.8.7
    • ≥ 3.7.0, < 3.7.10Fixed in 3.7.10
    • < 3.6.13Fixed in 3.6.13
  • CVE-2022-48560HIGH 7.52023-08-23EPSS 2%

    A use-after-free exists in Python through 3.9 via heappushpop in heapq.

    • 3.9.0-alpha2This version only
    • 3.9.0-alpha1This version only
    • ≥ 3.8.0, < 3.8.2Fixed in 3.8.2
    • ≥ 3.7.0, < 3.7.7Fixed in 3.7.7
    • < 3.6.11Fixed in 3.6.11
  • CVE-2023-38898MED 5.32023-08-16EPSS 2%

    An issue in Python cpython v.3.7 allows an attacker to obtain sensitive information via the _asyncio._swap_current_task component. NOTE: this is disputed by the vendor because (1) neither 3.7 nor any other release is affected (it is a bug in some 3.12 pre-releases); (2) there ar…

    • 3.13.0-alpha0This version only
  • CVE-2023-36632HIGH 7.52023-06-26EPSS 2%

    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. This argument is plausibly an untrusted value from an application's input data…

    • ≤ 3.11.4Affected up to 3.11.4 — see vendor advisory
  • CVE-2023-33595MED 5.52023-06-08EPSS 0%

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

    • 3.12.0-alpha7This version only
  • CVE-2023-27043MED 5.32023-04-19EPSS 3%

    The email module of Python through 3.11.3 incorrectly parses e-mail addresses that contain a special character. The wrong portion of an RFC2822 header is identified as the value of the addr-spec. In some applications, an attacker can bypass a protection mechanism in which applic…

    • ≥ 3.12.0, < 3.12.6Fixed in 3.12.6
    • ≥ 3.11.0, < 3.11.10Fixed in 3.11.10
    • ≥ 3.10.0, < 3.10.15Fixed in 3.10.15
    • ≥ 3.9.0, < 3.9.20Fixed in 3.9.20
    • ≥ 3.0, < 3.8.20Fixed in 3.8.20
    • ≤ 2.7.18Affected up to 2.7.18 — see vendor advisory
  • CVE-2023-24329HIGH 7.52023-02-17EPSS 20%

    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.

    • ≥ 3.11.0, < 3.11.4Fixed in 3.11.4
    • ≥ 3.10.0, < 3.10.12Fixed in 3.10.12
    • ≥ 3.9.0, < 3.9.17Fixed in 3.9.17
    • ≥ 3.8.0, < 3.8.17Fixed in 3.8.17
    • < 3.7.17Fixed in 3.7.17