Python Software Foundation Cpython vulnerabilities

51 known vulnerabilities affecting python_software_foundation/cpython.

Total CVEs
51
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
CRITICAL4HIGH14MEDIUM27LOW5

Vulnerabilities

Page 2 of 3
CVE-2025-13836MEDIUMCVSS 6.3fixed in 3.10.20≥ 3.11.0, < 3.11.15+4 more2025-12-01
CVE-2025-13836 [MEDIUM] CWE-400 CVE-2025-13836: When reading an HTTP response from a server, if no read amount is specified, the default behavior wi 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.
cvelistv5nvd
CVE-2025-13837LOWCVSS 2.1fixed in 3.10.20≥ 3.11.0, < 3.11.15+4 more2025-12-01
CVE-2025-13837 [LOW] CWE-400 CVE-2025-13837: When loading a plist file, the plistlib module reads data in size specified by the file itself, mean 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
cvelistv5nvd
CVE-2025-6075LOWCVSS 1.8fixed in 3.10.20≥ 3.11.0, < 3.11.15+4 more2025-10-31
CVE-2025-6075 [LOW] CWE-400 CVE-2025-6075: If the value passed to os.path.expandvars() is user-controlled a performance degradation is possibl If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
cvelistv5nvd
CVE-2025-8291MEDIUMCVSS 4.3fixed in 3.9.24≥ 3.10.0, < 3.10.19+4 more2025-10-07
CVE-2025-8291 [MEDIUM] CWE-1285 CVE-2025-8291: The 'zipfile' module would not check the validity of the ZIP64 End of Central Directory (EOCD) Locat The 'zipfile' module would not check the validity of the ZIP64 End of Central Directory (EOCD) Locator record offset value would not be used to locate the ZIP64 EOCD record, instead the ZIP64 EOCD record would be assumed to be the previous record in the ZIP archive. This could be abused to create ZIP archives that are handled differently by the 'zipf
cvelistv5nvd
CVE-2025-8194HIGHCVSS 7.5fixed in 3.9.24≥ 3.10.0, < 3.10.19+4 more2025-07-28
CVE-2025-8194 [HIGH] CWE-835 CVE-2025-8194: There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enume There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enumeration APIs. The tar implementation would process tar archives with negative offsets without error, resulting in an infinite loop and deadlock during the parsing of maliciously crafted tar archives. This vulnerability can be mitigated by including the fo
cvelistv5nvd
CVE-2025-6069MEDIUMCVSS 4.3fixed in 3.9.24≥ 3.10.0, < 3.10.19+4 more2025-06-17
CVE-2025-6069 [MEDIUM] CWE-1333 CVE-2025-6069: The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service.
cvelistv5nvd
CVE-2025-4517CRITICALCVSS 9.4fixed in 3.9.23≥ 3.10.0, < 3.10.18+4 more2025-06-03
CVE-2025-4517 [CRITICAL] CWE-22 CVE-2025-4517: Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="d Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="data". You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "data" or "tar". See the tarfile extraction filters
cvelistv5nvd
CVE-2025-4330HIGHCVSS 7.5fixed in 3.9.23≥ 3.10.0, < 3.10.18+4 more2025-06-03
CVE-2025-4330 [HIGH] CWE-22 CVE-2025-4330: Allows the extraction filter to be ignored, allowing symlink targets to point outside the destinatio Allows the extraction filter to be ignored, allowing symlink targets to point outside the destination directory, and the modification of some file metadata. You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "dat
cvelistv5nvd
CVE-2025-4138HIGHCVSS 7.5fixed in 3.9.23≥ 3.10.0, < 3.10.18+4 more2025-06-03
CVE-2025-4138 [HIGH] CWE-22 CVE-2025-4138: Allows the extraction filter to be ignored, allowing symlink targets to point outside the destinatio Allows the extraction filter to be ignored, allowing symlink targets to point outside the destination directory, and the modification of some file metadata. You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "dat
cvelistv5nvd
CVE-2025-4435HIGHCVSS 7.5fixed in 3.9.23≥ 3.10.0, < 3.10.18+4 more2025-06-03
CVE-2025-4435 [HIGH] CWE-682 CVE-2025-4435: When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. However the actual behavior of TarFile.errorlevel = 0 in affected versions is that the member would still be extracted and not skipped.
cvelistv5nvd
CVE-2024-12718MEDIUMCVSS 5.3fixed in 3.9.23≥ 3.10.0, < 3.10.18+4 more2025-06-03
CVE-2024-12718 [MEDIUM] CWE-22 CVE-2024-12718: Allows modifying some file metadata (e.g. last modified) with filter="data" or file permissions (chm Allows modifying some file metadata (e.g. last modified) with filter="data" or file permissions (chmod) with filter="tar" of files outside the extraction directory. You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a val
cvelistv5nvd
CVE-2025-4516MEDIUMCVSS 5.9fixed in 3.9.23≥ 3.10.0, < 3.10.18+4 more2025-05-15
CVE-2025-4516 [MEDIUM] CWE-416 CVE-2025-4516: There is an issue in CPython when using `bytes.decode("unicode_escape", error="ignore|replace")`. If There is an issue in CPython when using `bytes.decode("unicode_escape", error="ignore|replace")`. If you are not using the "unicode_escape" encoding or an error handler your usage is not affected. To work-around this issue you may stop using the error= handler and instead wrap the bytes.decode() call in a try-except catching the DecodeError.
cvelistv5nvd
CVE-2025-1795LOWCVSS 2.3fixed in 3.9.23≥ 3.10.0, < 3.10.17+3 more2025-02-28
CVE-2025-1795 [LOW] CWE-116 CVE-2025-1795: During an address list folding when a separating comma ends up on a folded line and that line is to During an address list folding when a separating comma ends up on a folded line and that line is to be unicode-encoded then the separator itself is also unicode-encoded. Expected behavior is that the separating comma remains a plan comma. This can result in the address header being misinterpreted by some mail servers.
cvelistv5nvd
CVE-2024-3220LOWCVSS 2.3fixed in 3.14.02025-02-14
CVE-2024-3220 [LOW] CWE-426 CVE-2024-3220: There is a defect in the CPython standard library module “mimetypes” where on Windows the default li There is a defect in the CPython standard library module “mimetypes” where on Windows the default list of known file locations are writable meaning other users can create invalid files to cause MemoryError to be raised on Python runtime startup or have file extensions be interpreted as the incorrect file type. This defect is caused by the default locati
cvelistv5nvd
CVE-2025-0938MEDIUMCVSS 6.3fixed in 3.9.22≥ 3.10.0, < 3.10.17+4 more2025-01-31
CVE-2025-0938 [MEDIUM] CWE-20 CVE-2025-0938: The Python standard library functions `urllib.parse.urlsplit` and `urlparse` accepted domain names t The Python standard library functions `urllib.parse.urlsplit` and `urlparse` accepted domain names that included square brackets which isn't valid according to RFC 3986. Square brackets are only meant to be used as delimiters for specifying IPv6 and IPvFuture hosts in URLs. This could result in differential parsing across the Python URL parser and othe
cvelistv5nvd
CVE-2024-12254HIGHCVSS 8.7≥ 3.12.0, < 3.12.9≥ 3.13.0, < 3.13.2+1 more2024-12-06
CVE-2024-12254 [HIGH] CWE-400 CVE-2024-12254: Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines() method would not "paus Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines() method would not "pause" writing and signal to the Protocol to drain the buffer to the wire once the write buffer reached the "high-water mark". Because of this, Protocols would not periodically drain the write buffer potentially leading to memory exhaustion. This vulnerabi
cvelistv5nvd
CVE-2024-11168MEDIUMCVSS 6.3fixed in 3.9.21≥ 3.10.0, < 3.10.16+2 more2024-11-12
CVE-2024-11168 [MEDIUM] CWE-918 CVE-2024-11168: The urllib.parse.urlsplit() and urlparse() functions improperly validated bracketed hosts (`[]`), al The urllib.parse.urlsplit() and urlparse() functions improperly validated bracketed hosts (`[]`), allowing hosts that weren't IPv6 or IPvFuture. This behavior was not conformant to RFC 3986 and potentially enabled SSRF if a URL is processed by more than one URL parser.
cvelistv5nvd
CVE-2024-9287MEDIUMCVSS 5.3fixed in 3.9.21≥ 3.10.0, < 3.10.16+4 more2024-10-22
CVE-2024-9287 [MEDIUM] CWE-428 CVE-2024-9287: A vulnerability has been found in the CPython `venv` module and CLI where path names provided when c 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 means that attacker-controlled virtual environments are able to run comma
cvelistv5nvd
CVE-2024-6232HIGHCVSS 7.5fixed in 3.8.20≥ 3.9.0, < 3.9.20+4 more2024-09-03
CVE-2024-6232 [HIGH] CWE-1333 CVE-2024-6232: There is a MEDIUM severity vulnerability affecting CPython. Regular expressions that allowed ex 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.
cvelistv5nvd
CVE-2024-8088HIGHCVSS 8.7fixed in 3.8.20≥ 3.9.0, < 3.9.20+4 more2024-08-22
CVE-2024-8088 [HIGH] CWE-835 CVE-2024-8088: There is a HIGH severity vulnerability affecting the CPython "zipfile" module affecting "zipfile.Pat There is a HIGH severity vulnerability affecting the CPython "zipfile" module affecting "zipfile.Path". Note that the more common API "zipfile.ZipFile" class is unaffected. When iterating over names of entries in a zip archive (for example, methods of "zipfile.Path" like "namelist()", "iterdir()", etc) the process can be put into an infinite loop with
cvelistv5nvd