CVE-2024-3219Public exploit

Local socket hijacking via unauthenticated fallback connection

Published Jul 29, 2024 · Updated May 2, 2025

Race condition in CPython on Windows allows local users to hijack a socketpair connection through the loopback interface. In Lib/socket.py, the pure-Python socket.socketpair() fallback accepts the first AF_INET or AF_INET6 connection without verifying that its peer is the client socket it created. A malicious local peer that wins the connection race is returned as the server-side socket and can receive data intended for the internal socket pair.

CVSS severity5.1
Medium
EPSS probability0.25%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Race condition in CPython on Windows allows local users to hijack a socketpair connection through the loopback interface. In Lib/socket.py, the pure-Python socket.socketpair() fallback accepts the first AF_INET or AF_INET6 connection without verifying that its peer is the client socket it created. A malicious local peer that wins the connection race is returned as the server-side socket and can receive data intended for the internal socket pair.

The record

CVE
CVE-2024-3219
Published
Jul 29, 2024
Updated
May 2, 2025
Vendor
Python Software Foundation
Product
CPython
Classifications
CWE-362, T1557
Attack vector
local
Privileges
unauthenticated

Timeline

How it unfolded

  1. Jul 29, 2024CVE publishedPublication date reported by the CVE source.
  2. May 2, 2025Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=0 <3.8.20
  2. Affected versionversion=3.10.0 <3.10.15
  3. Affected versionversion=3.11.0 <3.11.10
  4. Affected versionversion=3.12.0 <3.12.5
  5. Affected versionversion=3.13.0a1 <3.13.0rc1
  6. Affected versionversion=3.9.0 <3.9.20

What conditions does exploitation require?

Attack vectorlocal
Required privilegesunauthenticated

What is affected?

Python Software Foundation · CPythonversion=0 <3.8.20; version=3.10.0 <3.10.15; version=3.11.0 <3.11.10; version=3.12.0 <3.12.5; version=3.13.0a1 <3.13.0rc1; version=3.9.0 <3.9.20

Published CVSS scores

5.1Python Software FoundationCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesunauthenticated
Known exploitationUnconfirmed
Public exploitPublished

Weakness, pattern, technique

CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
T1557Adversary-in-the-Middle

Public exploit references

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo