CVE Vulnerabilities

CVE-2023-40217

Published: Aug 25, 2023 | Modified: Nov 03, 2025
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
8.6 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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 wont 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 Software

NameVendorStart VersionEnd Version
PythonPython*3.8.18 (excluding)
PythonPython3.9.0 (including)3.9.18 (excluding)
PythonPython3.10.0 (including)3.10.13 (excluding)
PythonPython3.11.0 (including)3.11.5 (excluding)
Red Hat Enterprise Linux 6 Extended Lifecycle SupportRedHatpython-0:2.6.6-70.el6_10*
Red Hat Enterprise Linux 7RedHatpython3-0:3.6.8-21.el7_9*
Red Hat Enterprise Linux 7RedHatpython-0:2.7.5-94.el7_9*
Red Hat Enterprise Linux 8RedHatpython3.11-0:3.11.2-2.el8_8.2*
Red Hat Enterprise Linux 8RedHatpython27:2.7-8080020231004233750.392b0bf1*
Red Hat Enterprise Linux 8RedHatpython3-0:3.6.8-51.el8_8.2*
Red Hat Enterprise Linux 8RedHatpython39:3.9-8080020230922214114.93c2fc2f*
Red Hat Enterprise Linux 8RedHatpython39-devel:3.9-8080020230922214114.93c2fc2f*
Red Hat Enterprise Linux 8RedHatpython3-0:3.6.8-51.el8_8.2*
Red Hat Enterprise Linux 8.1 Update Services for SAP SolutionsRedHatpython27:2.7-8010020231004234533.208b345f*
Red Hat Enterprise Linux 8.1 Update Services for SAP SolutionsRedHatpython3-0:3.6.8-15.1.el8_1.2*
Red Hat Enterprise Linux 8.2 Advanced Update SupportRedHatpython3-0:3.6.8-24.el8_2.2*
Red Hat Enterprise Linux 8.2 Advanced Update SupportRedHatpython27:2.7-8020020231004234409.c9f5743f*
Red Hat Enterprise Linux 8.2 Telecommunications Update ServiceRedHatpython3-0:3.6.8-24.el8_2.2*
Red Hat Enterprise Linux 8.2 Telecommunications Update ServiceRedHatpython27:2.7-8020020231004234409.c9f5743f*
Red Hat Enterprise Linux 8.2 Update Services for SAP SolutionsRedHatpython3-0:3.6.8-24.el8_2.2*
Red Hat Enterprise Linux 8.2 Update Services for SAP SolutionsRedHatpython27:2.7-8020020231004234409.c9f5743f*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatpython27:2.7-8040020231004234308.7c6da464*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatpython3-0:3.6.8-39.el8_4.3*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatpython39:3.9-8040020230922214438.63cd9eba*
Red Hat Enterprise Linux 8.4 Telecommunications Update ServiceRedHatpython27:2.7-8040020231004234308.7c6da464*
Red Hat Enterprise Linux 8.4 Telecommunications Update ServiceRedHatpython3-0:3.6.8-39.el8_4.3*
Red Hat Enterprise Linux 8.4 Telecommunications Update ServiceRedHatpython39:3.9-8040020230922214438.63cd9eba*
Red Hat Enterprise Linux 8.4 Update Services for SAP SolutionsRedHatpython27:2.7-8040020231004234308.7c6da464*
Red Hat Enterprise Linux 8.4 Update Services for SAP SolutionsRedHatpython3-0:3.6.8-39.el8_4.3*
Red Hat Enterprise Linux 8.4 Update Services for SAP SolutionsRedHatpython39:3.9-8040020230922214438.63cd9eba*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatpython3-0:3.6.8-47.el8_6.2*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatpython27:2.7-8060020231004234102.2aa69ce4*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatpython39:3.9-8060020230922214243.6a631399*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatpython39-devel:3.9-8060020230922214243.6a631399*
Red Hat Enterprise Linux 9RedHatpython3.11-0:3.11.2-2.el9_2.2*
Red Hat Enterprise Linux 9RedHatpython3.9-0:3.9.16-1.el9_2.2*
Red Hat Enterprise Linux 9RedHatpython3.9-0:3.9.16-1.el9_2.2*
Red Hat Enterprise Linux 9.0 Extended Update SupportRedHatpython3.9-0:3.9.10-4.el9_0.2*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-python38-python-0:3.8.18-2.el7*
Python2.7Ubuntubionic*
Python2.7Ubuntuesm-apps/focal*
Python2.7Ubuntuesm-apps/jammy*
Python2.7Ubuntuesm-infra-legacy/trusty*
Python2.7Ubuntuesm-infra/bionic*
Python2.7Ubuntuesm-infra/xenial*
Python2.7Ubuntufocal*
Python2.7Ubuntujammy*
Python2.7Ubuntutrusty*
Python2.7Ubuntutrusty/esm*
Python2.7Ubuntuxenial*
Python3.10Ubuntubionic*
Python3.10Ubuntujammy*
Python3.10Ubuntutrusty*
Python3.10Ubuntuupstream*
Python3.10Ubuntuxenial*
Python3.11Ubuntubionic*
Python3.11Ubuntuesm-apps/jammy*
Python3.11Ubuntujammy*
Python3.11Ubuntulunar*
Python3.11Ubuntutrusty*
Python3.11Ubuntuupstream*
Python3.11Ubuntuxenial*
Python3.12Ubuntubionic*
Python3.12Ubuntutrusty*
Python3.12Ubuntuupstream*
Python3.12Ubuntuxenial*
Python3.4Ubuntuesm-infra-legacy/trusty*
Python3.4Ubuntutrusty*
Python3.4Ubuntutrusty/esm*
Python3.5Ubuntuesm-infra-legacy/trusty*
Python3.5Ubuntuesm-infra/xenial*
Python3.5Ubuntutrusty*
Python3.5Ubuntutrusty/esm*
Python3.5Ubuntuxenial*
Python3.6Ubuntubionic*
Python3.6Ubuntuesm-infra/bionic*
Python3.7Ubuntubionic*
Python3.7Ubuntuesm-apps/bionic*
Python3.7Ubuntutrusty*
Python3.7Ubuntuxenial*
Python3.8Ubuntubionic*
Python3.8Ubuntuesm-apps/bionic*
Python3.8Ubuntuesm-infra/focal*
Python3.8Ubuntufocal*
Python3.9Ubuntubionic*
Python3.9Ubuntuesm-apps/focal*
Python3.9Ubuntufocal*
Python3.9Ubuntutrusty*
Python3.9Ubuntuupstream*
Python3.9Ubuntuxenial*

References