The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use io.open_code() to read the .pyc files. sys.audit handlers for this audit event therefore do not fire.
Product
ubuntu/python3.12 vulnerabilities
84 published CVES affecting ubuntu/python3.12, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 84
- Critical
- 4
- High
- 21
- Medium
- 46
- Low
- 12
- Unscored
- 1
- CISA KEV
- 0
Latest ubuntu/python3.12 CVEs
Newest publication first · page 3 of 4
-
MediumCVSS 5.7 EPSS 0.22%
-
MediumCVSS 6.0 EPSS 0.57%
The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized. This is only applicable if using "LiteralHeader" writing headers that don't res...
-
CVE-2025-12781 base64.b64decode() always accepts "+/" characters, despite setting altchars
PublishedMediumCVSS 6.3 EPSS 0.86%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...
-
MediumCVSS 6.0 EPSS 0.48%
When using http.cookies.Morsel, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. Patch rejects all control characters within cookie names, values, and parameters.
-
MediumCVSS 5.9 EPSS 0.38%
The poplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
-
MediumCVSS 5.9 EPSS 0.43%
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
-
MediumCVSS 6.0 EPSS 0.54%
User-controlled data URLs parsed by urllib.request.DataHandler allow injecting headers through newlines in the data URL mediatype.
-
MediumCVSS 5.9 EPSS 0.55%
User-controlled header names and values containing newlines can allow injecting HTTP headers.
-
CVE-2025-11468 Folding email comments of unfoldable characters doesn't preserve parenthesis
PublishedMediumCVSS 5.7 EPSS 0.62%When folding a long comment in an email header containing exclusively unfoldable characters, the parenthesis would not be preserved. This could be used for injecting headers into email messages where addresses are user-controlled and not sanitized.
-
MediumCVSS 6.3 EPSS 0.86%
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.
-
LowCVSS 2.1 EPSS 0.24%
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
-
MediumCVSS 6.3 EPSS 1.7%
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.
-
LowCVSS 1.8 EPSS 0.15%
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
-
MediumCVSS 4.3 EPSS 0.47%
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...
-
HighCVSS 7.5 EPSS 0.76%
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 cra...
-
MediumCVSS 4.3 EPSS 0.63%
The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service.
-
CVE-2024-12718 Bypass extraction filter to modify file metadata outside extraction directory
PublishedMediumCVSS 5.3 EPSS 0.83%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....
-
HighCVSS 7.5 EPSS 0.62%
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...
-
HighCVSS 7.5 EPSS 1.5%
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.extracta...
-
HighCVSS 7.5 EPSS 0.97%
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.extracta...
-
CriticalCVSS 9.4 EPSS 1.5%
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= paramet...
-
MediumCVSS 5.9 EPSS 0.22%
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...
-
LowCVSS 2.3 EPSS 0.63%
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 bei...
-
LowCVSS 2.3 EPSS 0.72%
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 interpre...
-
MediumCVSS 6.3 EPSS 1.5%
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 coul...
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.