2084AI 安全观察

基础设施漏洞库

Python (CPython)

Python Software Foundation · 30 CVE · 严重 1 · 高危 13 · 列入 CISA KEV 0

0510152023 年:严重 1 个,其他 11 个20232024 年:严重 0 个,其他 3 个20242025 年:严重 0 个,其他 4 个20252026 年:严重 0 个,其他 11 个2026
高危及以下严重本库收录的 CVE,按发布年份

检查你的版本

例如 3.11.4,可用 python3 --version 查看

收录的全部 CVE · 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-beta3仅此版本
    • 3.15.0-beta2仅此版本
    • 3.15.0-beta1仅此版本
    • 3.15.0-alpha8仅此版本
    • 3.15.0-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.7修复版本 3.14.7
    • ≥ 3.13.0, < 3.13.15修复版本 3.13.15
    • ≥ 3.12.0, < 3.12.14修复版本 3.12.14
    • ≥ 3.11.0, < 3.11.16修复版本 3.11.16
    • < 3.10.21修复版本 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.5修复版本 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-beta3仅此版本
    • 3.15.0-beta2仅此版本
    • 3.15.0-beta1仅此版本
    • 3.15.0-alpha8仅此版本
    • 3.15.0-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.7修复版本 3.14.7
    • ≥ 3.13.0, < 3.13.15修复版本 3.13.15
    • ≥ 3.12.0, < 3.12.14修复版本 3.12.14
    • ≥ 3.11.0, < 3.11.16修复版本 3.11.16
    • < 3.10.21修复版本 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-beta1仅此版本
    • 3.15.0-alpha8仅此版本
    • 3.15.0-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.6修复版本 3.14.6
    • < 3.13.14修复版本 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-alpha8仅此版本
    • 3.15.0-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≤ 3.14.4受影响至 3.14.4(含),修复版本见厂商公告
  • 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-alpha8仅此版本
    • 3.15.0-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, ≤ 3.14.4受影响至 3.14.4(含),修复版本见厂商公告
    • < 3.13.14修复版本 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-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.4修复版本 3.14.4
    • < 3.13.13修复版本 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-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.4修复版本 3.14.4
    • ≥ 3.13.0, < 3.13.13修复版本 3.13.13
    • < 3.10.0修复版本 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-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.4修复版本 3.14.4
    • < 3.13.13修复版本 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-alpha7仅此版本
    • 3.15.0-alpha6仅此版本
    • 3.15.0-alpha5仅此版本
    • 3.15.0-alpha4仅此版本
    • 3.15.0-alpha3仅此版本
    • 3.15.0-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.4修复版本 3.14.4
    • < 3.13.13修复版本 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-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.1修复版本 3.14.1
    • < 3.13.10修复版本 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-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.2修复版本 3.14.2
    • < 3.13.11修复版本 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-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.1修复版本 3.14.1
    • < 3.13.10修复版本 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-alpha2仅此版本
    • 3.15.0-alpha1仅此版本
    • 3.14.0仅此版本
    • ≥ 3.13.0, < 3.13.11修复版本 3.13.11
    • ≥ 3.12.0, < 3.12.13修复版本 3.12.13
    • ≥ 3.11.0, < 3.11.15修复版本 3.11.15
    • < 3.10.20修复版本 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-alpha1仅此版本
    • ≥ 3.14.0, < 3.14.1修复版本 3.14.1
    • ≥ 3.13.1, < 3.13.11修复版本 3.13.11
    • < 3.9.0修复版本 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-alpha1仅此版本
    • ≥ 3.13.0, < 3.13.1修复版本 3.13.1
    • ≥ 3.12.0, < 3.12.8修复版本 3.12.8
    • ≥ 3.11.0, < 3.11.11修复版本 3.11.11
    • ≥ 3.10.0, < 3.10.16修复版本 3.10.16
    • < 3.9.21修复版本 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-rc1仅此版本
    • 3.13.0-beta4仅此版本
    • 3.13.0-beta3仅此版本
    • 3.13.0-beta2仅此版本
    • 3.13.0-beta1仅此版本
    • 3.13.0-alpha6仅此版本
    • 3.13.0-alpha5仅此版本
    • 3.13.0-alpha4仅此版本
    • 3.13.0-alpha3仅此版本
    • 3.13.0-alpha2仅此版本
    • 3.13.0-alpha1仅此版本
    • 3.13.0-alpha0仅此版本
    • ≥ 3.12.0, < 3.12.6修复版本 3.12.6
    • ≥ 3.11.0, < 3.11.10修复版本 3.11.10
    • ≥ 3.10.0, < 3.10.15修复版本 3.10.15
    • ≥ 3.9.0, < 3.9.20修复版本 3.9.20
    • < 3.8.20修复版本 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-rc1仅此版本
    • 3.13.0-beta4仅此版本
    • 3.13.0-beta3仅此版本
    • 3.13.0-beta2仅此版本
    • 3.13.0-beta1仅此版本
    • 3.13.0-alpha6仅此版本
    • 3.13.0-alpha5仅此版本
    • 3.13.0-alpha4仅此版本
    • 3.13.0-alpha3仅此版本
    • 3.13.0-alpha2仅此版本
    • 3.13.0-alpha1仅此版本
    • 3.13.0-alpha0仅此版本
    • ≥ 3.12.0, < 3.12.6修复版本 3.12.6
    • ≥ 3.11.0, < 3.11.10修复版本 3.11.10
    • ≥ 3.10.0, < 3.10.15修复版本 3.10.15
    • ≥ 3.9.0, < 3.9.20修复版本 3.9.20
    • < 3.8.20修复版本 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-alpha2仅此版本
    • 3.13.0-alpha1仅此版本
    • 3.12.0仅此版本
  • 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.5修复版本 3.11.5
    • ≥ 3.10.0, < 3.10.13修复版本 3.10.13
    • ≥ 3.9.0, < 3.9.18修复版本 3.9.18
    • < 3.8.18修复版本 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.4受影响至 3.11.4(含),修复版本见厂商公告
  • 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.1修复版本 3.9.1
    • ≥ 3.8.0, < 3.8.7修复版本 3.8.7
    • ≥ 3.7.0, < 3.7.10修复版本 3.7.10
    • < 3.6.13修复版本 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.1修复版本 3.9.1
    • ≥ 3.8.0, < 3.8.7修复版本 3.8.7
    • ≥ 3.7.0, < 3.7.10修复版本 3.7.10
    • < 3.6.13修复版本 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.1修复版本 3.9.1
    • ≥ 3.8.0, < 3.8.7修复版本 3.8.7
    • ≥ 3.7.0, < 3.7.10修复版本 3.7.10
    • < 3.6.13修复版本 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-alpha2仅此版本
    • 3.9.0-alpha1仅此版本
    • ≥ 3.8.0, < 3.8.2修复版本 3.8.2
    • ≥ 3.7.0, < 3.7.7修复版本 3.7.7
    • < 3.6.11修复版本 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-alpha0仅此版本
  • 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.4受影响至 3.11.4(含),修复版本见厂商公告
  • 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-alpha7仅此版本
  • 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.6修复版本 3.12.6
    • ≥ 3.11.0, < 3.11.10修复版本 3.11.10
    • ≥ 3.10.0, < 3.10.15修复版本 3.10.15
    • ≥ 3.9.0, < 3.9.20修复版本 3.9.20
    • ≥ 3.0, < 3.8.20修复版本 3.8.20
    • ≤ 2.7.18受影响至 2.7.18(含),修复版本见厂商公告
  • 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.4修复版本 3.11.4
    • ≥ 3.10.0, < 3.10.12修复版本 3.10.12
    • ≥ 3.9.0, < 3.9.17修复版本 3.9.17
    • ≥ 3.8.0, < 3.8.17修复版本 3.8.17
    • < 3.7.17修复版本 3.7.17