CWE
306
Advisory Published
Updated

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

First published: Mon Jul 29 2024(Updated: )

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.

Credit: cna@python.org

Affected SoftwareAffected VersionHow to fix
CPython>3.5

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-3219?

    CVE-2024-3219 is considered a medium severity vulnerability due to potential risks associated with socket connections.

  • How do I fix CVE-2024-3219?

    To fix CVE-2024-3219, upgrade to Python CPython version 3.6 or later where the vulnerability has been addressed.

  • What platforms are affected by CVE-2024-3219?

    CVE-2024-3219 affects Python CPython versions prior to 3.6 on platforms that do not support AF_UNIX.

  • What type of vulnerability is CVE-2024-3219?

    CVE-2024-3219 is a vulnerability related to the socket module's implementation of socket pairs in Python.

  • Is CVE-2024-3219 easy to exploit?

    CVE-2024-3219 could potentially be exploited in specific scenarios involving local socket communications, increasing the risk of data exposure.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203