CVE Vulnerabilities

CVE-2023-40217

Published: Aug 25, 2023 | Modified: Nov 07, 2023
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

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

Name Vendor Start Version End Version
Python Python * 3.8.18 (excluding)
Python Python 3.9.0 (including) 3.9.18 (excluding)
Python Python 3.10.0 (including) 3.10.13 (excluding)
Python Python 3.11.0 (including) 3.11.5 (excluding)
Red Hat Enterprise Linux 6 Extended Lifecycle Support RedHat python-0:2.6.6-70.el6_10 *
Red Hat Enterprise Linux 7 RedHat python3-0:3.6.8-21.el7_9 *
Red Hat Enterprise Linux 7 RedHat python-0:2.7.5-94.el7_9 *
Red Hat Enterprise Linux 8 RedHat python3.11-0:3.11.2-2.el8_8.2 *
Red Hat Enterprise Linux 8 RedHat python27:2.7-8080020231004233750.392b0bf1 *
Red Hat Enterprise Linux 8 RedHat python3-0:3.6.8-51.el8_8.2 *
Red Hat Enterprise Linux 8 RedHat python39:3.9-8080020230922214114.93c2fc2f *
Red Hat Enterprise Linux 8 RedHat python39-devel:3.9-8080020230922214114.93c2fc2f *
Red Hat Enterprise Linux 8 RedHat python3-0:3.6.8-51.el8_8.2 *
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions RedHat python27:2.7-8010020231004234533.208b345f *
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions RedHat python3-0:3.6.8-15.1.el8_1.2 *
Red Hat Enterprise Linux 8.2 Advanced Update Support RedHat python3-0:3.6.8-24.el8_2.2 *
Red Hat Enterprise Linux 8.2 Advanced Update Support RedHat python27:2.7-8020020231004234409.c9f5743f *
Red Hat Enterprise Linux 8.2 Telecommunications Update Service RedHat python3-0:3.6.8-24.el8_2.2 *
Red Hat Enterprise Linux 8.2 Telecommunications Update Service RedHat python27:2.7-8020020231004234409.c9f5743f *
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions RedHat python3-0:3.6.8-24.el8_2.2 *
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions RedHat python27:2.7-8020020231004234409.c9f5743f *
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support RedHat python27:2.7-8040020231004234308.7c6da464 *
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support RedHat python3-0:3.6.8-39.el8_4.3 *
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support RedHat python39:3.9-8040020230922214438.63cd9eba *
Red Hat Enterprise Linux 8.4 Telecommunications Update Service RedHat python27:2.7-8040020231004234308.7c6da464 *
Red Hat Enterprise Linux 8.4 Telecommunications Update Service RedHat python3-0:3.6.8-39.el8_4.3 *
Red Hat Enterprise Linux 8.4 Telecommunications Update Service RedHat python39:3.9-8040020230922214438.63cd9eba *
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions RedHat python27:2.7-8040020231004234308.7c6da464 *
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions RedHat python3-0:3.6.8-39.el8_4.3 *
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions RedHat python39:3.9-8040020230922214438.63cd9eba *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat python3-0:3.6.8-47.el8_6.2 *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat python27:2.7-8060020231004234102.2aa69ce4 *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat python39:3.9-8060020230922214243.6a631399 *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat python39-devel:3.9-8060020230922214243.6a631399 *
Red Hat Enterprise Linux 9 RedHat python3.11-0:3.11.2-2.el9_2.2 *
Red Hat Enterprise Linux 9 RedHat python3.9-0:3.9.16-1.el9_2.2 *
Red Hat Enterprise Linux 9 RedHat python3.9-0:3.9.16-1.el9_2.2 *
Red Hat Enterprise Linux 9.0 Extended Update Support RedHat python3.9-0:3.9.10-4.el9_0.2 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-python38-python-0:3.8.18-2.el7 *
Python2.7 Ubuntu bionic *
Python2.7 Ubuntu esm-apps/focal *
Python2.7 Ubuntu esm-apps/jammy *
Python2.7 Ubuntu esm-infra/bionic *
Python2.7 Ubuntu esm-infra/xenial *
Python2.7 Ubuntu trusty *
Python2.7 Ubuntu trusty/esm *
Python2.7 Ubuntu xenial *
Python3.10 Ubuntu bionic *
Python3.10 Ubuntu jammy *
Python3.10 Ubuntu trusty *
Python3.10 Ubuntu upstream *
Python3.10 Ubuntu xenial *
Python3.11 Ubuntu bionic *
Python3.11 Ubuntu jammy *
Python3.11 Ubuntu lunar *
Python3.11 Ubuntu trusty *
Python3.11 Ubuntu upstream *
Python3.11 Ubuntu xenial *
Python3.12 Ubuntu bionic *
Python3.12 Ubuntu trusty *
Python3.12 Ubuntu upstream *
Python3.12 Ubuntu xenial *
Python3.4 Ubuntu esm-infra-legacy/trusty *
Python3.4 Ubuntu trusty *
Python3.4 Ubuntu trusty/esm *
Python3.5 Ubuntu esm-infra-legacy/trusty *
Python3.5 Ubuntu esm-infra/xenial *
Python3.5 Ubuntu trusty *
Python3.5 Ubuntu trusty/esm *
Python3.5 Ubuntu xenial *
Python3.6 Ubuntu bionic *
Python3.6 Ubuntu esm-infra/bionic *
Python3.7 Ubuntu bionic *
Python3.7 Ubuntu esm-apps/bionic *
Python3.7 Ubuntu trusty *
Python3.7 Ubuntu xenial *
Python3.8 Ubuntu bionic *
Python3.8 Ubuntu esm-apps/bionic *
Python3.8 Ubuntu focal *
Python3.9 Ubuntu bionic *
Python3.9 Ubuntu esm-apps/focal *
Python3.9 Ubuntu trusty *
Python3.9 Ubuntu upstream *
Python3.9 Ubuntu xenial *

References