cbcvebase.
CVE-2023-40217
published 2023-08-25

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 before 3.11.5. It primarily affects servers (such as…

PriorityP431medium5.3CVSS 3.1
AVNACLPRNUINSUCLINAN
EPSS
0.79%
52.2th percentile
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

13 ranges
VendorProductVersion rangeFixed in
debianpypy3< pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)
debianpython2.7< pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)
debianpython3.11< pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)
debianpython3.9< pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)pypy3 7.3.11+dfsg-2+deb12u2 (bookworm)
msrccbl2_python3_3.9.19-1_on_cbl_mariner_2.0
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
paloaltocortex_xdr
paloaltopan-os
pythonpython< 3.8.183.8.18
pythonpython>= 3.10.0 < 3.10.133.10.13
pythonpython>= 3.11.0 < 3.11.53.11.5
pythonpython>= 3.9.0 < 3.9.183.9.18

CVSS provenance

nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
osv7.6HIGH
vendor_ubuntu7.6HIGH
vendor_debian5.3MEDIUM
vendor_msrc5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.