p PatchFirst

PatchFirst · Latest vulnerabilities

python vulnerabilities · Page 4

Vulnerabilities published for python in the last 30 days: 5. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 77

  1. CVE-2024-3220

    Low · CVSS 2.3EPSS 0.6%Fix available

    Default mimetype known files writeable on Windows

    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 locations of Linux and macOS platforms (such as “/etc/mime.types”) also being used on Windows, where they are user-writable locations (“C:\etc\mime.types”). To work-around this issue a user can call mimetypes.init() with an empty list (“[]”) on Windows platforms to avoid using the default list of k

    • Update to 3.14.9
    • Update to 3.15.1
    • Update to 3.16.0
    Published Updated
  2. CVE-2025-0938

    Medium · CVSS 6.3EPSS 1.56%Fix available

    URL parser allowed square brackets in domain names

    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 other specification-compliant URL parsers.

    • Update to 3.10.17
    • Update to 3.11.12
    • Update to 3.12.9
    • Update to 3.13.2
    • Update to 3.9.22
    Published Updated
  3. CVE-2024-12254

    High · CVSS 8.7EPSS 1.87%Fix available

    Unbounded memory buffering in SelectorSocketTransport.writelines()

    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 vulnerability likely impacts a small number of users, you must be using Python 3.12.0 or later, on macOS or Linux, using the asyncio module with protocols, and using .writelines() method which had new zero-copy-on-write behavior in Python 3.12.0 and later. If not all of these factors are true

    • Update to 3.12.9
    • Update to 3.13.2
    Published Updated
  4. CVE-2024-11168

    Medium · CVSS 6.3EPSS 0.66%Fix available

    Improper validation of IPv6 and IPvFuture addresses

    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.

    • Update to 3.10.16
    • Update to 3.11.4
    • Update to 3.9.21
    Published Updated
  5. CVE-2024-9287

    Medium · CVSS 5.3EPSS 0.65%Fix available

    Virtual environment (venv) activation scripts don't quote paths

    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 commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.

    • Update to 3.10.16
    • Update to 3.11.11
    • Update to 3.12.8
    • Update to 3.13.1
    • Update to 3.9.21
    Published Updated
  6. CVE-2024-6232

    High · CVSS 7.5EPSS 2.2%Fix available

    Regular-expression DoS when parsing TarFile headers

    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.

    • Update to 3.10.15
    • Update to 3.11.10
    • Update to 3.12.6
    • Update to 3.13.0rc2
    • Update to 3.8.20
    • Update to 3.9.20
    Published Updated
  7. CVE-2024-8088

    High · CVSS 8.7EPSS 1.27%Fix available

    Infinite loop when iterating over zip archive entry names from zipfile.Path

    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 a maliciously crafted zip archive. This defect applies when reading only metadata or extracting the contents of the zip archive. Programs that are not handling user-controlled zip archives are not affected.

    • Update to 3.10.15
    • Update to 3.11.10
    • Update to 3.12.6
    • Update to 3.13.0rc2
    • Update to 3.8.20
    • Update to 3.9.20
    Published Updated
  8. CVE-2024-7592

    High · CVSS 7.5EPSS 2.3%Fix available

    Quadratic complexity parsing cookies with backslashes

    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 excess CPU resources being used while parsing the value.

    • Update to 3.10.15
    • Update to 3.11.10
    • Update to 3.12.6
    • Update to 3.13.0rc2
    • Update to 3.8.20
    • Update to 3.9.20
    Published Updated
  9. CVE-2024-6923

    Medium · CVSS 5.5EPSS 1.1%Fix available

    Email header injection due to unquoted newlines

    There is a MEDIUM severity vulnerability affecting CPython. The email module didn’t properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized.

    • Update to 3.10.15
    • Update to 3.11.10
    • Update to 3.12.5
    • Update to 3.13.0rc2
    • Update to 3.8.20
    • Update to 3.9.20
    Published Updated
  10. CVE-2024-3219

    Medium · CVSS 5.1EPSS 0.25%Fix available

    Pure-Python fallback of socket.socketpair() doesn’t authenticate peer connection

    The “socket” module provides a pure-Python fallback to the socket.socketpair() function for platforms that don’t support AF_UNIX, such as Windows. This pure-Python implementation uses AF_INET or AF_INET6 to create a local connected pair of sockets. The connection between the two sockets was not verified before passing the two sockets back to the user, which leaves the server socket vulnerable to a connection race from a malicious local peer. Platforms that support AF_UNIX such as Linux and macOS are not affected by this vulnerability. Versions prior to CPython 3.5 are not affected due to the vulnerable API not being included.

    • Update to 3.10.15
    • Update to 3.11.10
    • Update to 3.12.5
    • Update to 3.13.0rc1
    • Update to 3.8.20
    • Update to 3.9.20
    Published Updated
  11. CVE-2024-5642

    Medium · CVSS 6.5EPSS 0.74%Fix available

    Buffer overread when using an empty list with SSLContext.set_npn_protocols()

    CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).

    • Update to 3.9.24
    Published Updated
  12. CVE-2024-0397

    High · CVSS 7.4EPSS 0.81%Fix available

    Memory race condition in ssl.SSLContext certificate store methods

    A defect was discovered in the Python “ssl” module where there is a memory race condition with the ssl.SSLContext methods “cert_store_stats()” and “get_ca_certs()”. The race condition can be triggered if the methods are called at the same time as certificates are loaded into the SSLContext, such as during the TLS handshake with a certificate directory configured. This issue is fixed in CPython 3.10.14, 3.11.9, 3.12.3, and 3.13.0a5.

    • Update to 3.10.14
    • Update to 3.11.9
    • Update to 3.12.3
    • Update to 3.8.20
    • Update to 3.9.20
    Published Updated
  13. CVE-2024-4032

    High · CVSS 7.5EPSS 1.08%Fix available

    Incorrect IPv4 and IPv6 private ranges

    The “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “private”. This affected the is_private and is_global properties of the ipaddress.IPv4Address, ipaddress.IPv4Network, ipaddress.IPv6Address, and ipaddress.IPv6Network classes, where values wouldn’t be returned in accordance with the latest information from the IANA Special-Purpose Address Registries. CPython 3.12.4 and 3.13.0a6 contain updated information from these registries and thus have the intended behavior.

    • Update to 3.10.15
    • Update to 3.11.10
    • Update to 3.12.4
    • Update to 3.8.20
    • Update to 3.9.20
    Published Updated
  14. CVE-2024-4030

    High · CVSS 7.1EPSS 0.3%Fix available

    tempfile.mkdtemp() may be readable and writeable by all users on Windows

    On Windows a directory returned by tempfile.mkdtemp() would not always have permissions set to restrict reading and writing to the temporary directory by other users, instead usually inheriting the correct permissions from the default location. Alternate configurations or users without a profile directory may not have the intended permissions. If you’re not using Windows or haven’t changed the temporary directory location then you aren’t affected by this vulnerability. On other platforms the returned directory is consistently readable and writable only by the current user. This issue was caused by Python not supporting Unix permissions on W

    • Update to 3.10.15
    • Update to 3.11.10
    • Update to 3.12.4
    • Update to 3.8.20
    • Update to 3.9.20
    Published Updated
  15. CVE-2023-6597

    High · CVSS 7.8EPSS 0.31%Fix available

    CVE-2023-6597

    An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior. The tempfile.TemporaryDirectory class would dereference symlinks during cleanup of permissions-related errors. This means users which can run privileged programs are potentially able to modify permissions of files referenced by symlinks in some circumstances.

    • Update to 3.10.14
    • Update to 3.11.8
    • Update to 3.12.1
    • Update to 3.8.19
    • Update to 3.9.19
    Published Updated
  16. CVE-2024-0450

    Medium · CVSS 6.2EPSS 0.34%Fix available

    Quoted zip-bomb protection for zipfile

    An issue was found in the CPython `zipfile` module affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior. The zipfile module is vulnerable to “quoted-overlap” zip-bombs which exploit the zip format to create a zip-bomb with a high compression ratio. The fixed versions of CPython makes the zipfile module reject zip archives which overlap entries in the archive.

    • Update to 3.10.14
    • Update to 3.11.8
    • Update to 3.12.2
    • Update to 3.8.19
    • Update to 3.9.19
    Published Updated
  17. CVE-2023-6507

    Medium · CVSS 6.1EPSS 1.34%Fix available

    Groups not dropped before running subprocess when using empty 'extra_groups' parameter

    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 call `setgroups(0, NULL)` before calling `exec()`, thus not dropping the original processes' groups before starting the new process. There is no issue when the parameter isn't used or when any value is used besides an empty list. This issue only impacts CPython processes run with sufficient privilege to make the `setgroups` system call (typically `root`).

    • Update to 3.12.1
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →