1. Home
  2. Vulnerabilities
  3. CVE-2023-40217

CVE-2023-40217

An issue was discovered in Python before 3.8.18, 3.9.x before 3.9.18, 3.10.x before 3.10.13, and 3.11.x…

Published 25 Aug 2023 · modified 17 Jun 2026 · Sources: NVD, CERT-FR, EPSS (FIRST)

Low 38/100

Summary

An issue was discovered in Python before 3.8.18, 3.9.x before 3.9.18, 3.10.x before 3.10.13, and 3.11.x before 3.11.5. It primarily affects servers (such as HTTP servers) that use TLS client authentication. If a TLS server-side socket is created, receives data into the socket buffer, and then is closed quickly, there is a brief window where the SSLSocket instance will detect the socket as "not connected" and won't initiate a handshake, but buffered data will still be readable from the socket buffer. This data will not be authenticated if the server-side TLS peer is expecting client certificate authentication, and is indistinguishable from valid TLS stream data. Data is limited in size to the amount that will fit in the buffer. (The TLS connection cannot directly be used for data exfiltration because the vulnerable code path requires that the connection be closed on initialization of the SSLSocket.)

Affected products and versions

Python (4 line(s))
Python
ProductVersionsFixed inSource
Python before 3.8.18 (excluded) — NVD
Python from 3.9.0 (included) to 3.9.18 (excluded) — NVD
Python from 3.10.0 (included) to 3.10.13 (excluded) — NVD
Python from 3.11.0 (included) to 3.11.5 (excluded) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)
  2. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1385)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1, NVD)
Weakness
NVD-CWE-noinfo · Non classé

How this data is obtained and calculated