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.)
CVE-2023-40217
Score 5.3 from GitHub Security Advisory published 2023-08-25. NVD baseline CVSS 5.3; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.3
- EG Score
- 5.3(medium)
- EG Risk
- 39(Track)EG Risk 39/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity53% × 45%Exploitation1% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 53%
- KEV
- Not listed
Published
August 25, 2023
Last Modified
November 3, 2025
References (12)
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2023/09/msg00022.html
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2023/10/msg00017.html
- cve@mitrehttps://mail.python.org/archives/list/security-announce%40python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/
- cve@mitrehttps://security.netapp.com/advisory/ntap-20231006-0014/
- cve@mitrehttps://www.python.org/dev/security/
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2023/10/msg00017.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/11/msg00005.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- af854a3a-2127-422b-91ae-364da2661108https://mail.python.org/archives/list/security-announce%40python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20231006-0014/
- af854a3a-2127-422b-91ae-364da2661108https://www.python.org/dev/security/
Vendor Advisories for CVE-2023-40217(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(25)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(19 across 15 ecosystems)
Debian:11(3)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pypy3 | 7.3.5+dfsg-2, 7.3.5+dfsg-2+deb11u1, 7.3.5+dfsg-2+deb11u2 | 7.3.5+dfsg-2+deb11u3 | — |
| python2.7 | 2.7.18-8 | 2.7.18-8+deb11u1 | — |
| python3.9 | 3.9.2-1, 3.9.2-1+deb11u1 | 3.9.2-1+deb11u2 | — |
Debian:10(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python2.7 | 2.7.16-2, 2.7.16-2+deb10u1, 2.7.16-2+deb10u2 | 2.7.16-2+deb10u3 | — |
| python3.7 | 3.7.3-2 ... 3.7.3-2+deb10u5 (6 versions) | 3.7.3-2+deb10u6 | — |
Debian:12(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pypy3 | 7.3.11+dfsg-2, 7.3.11+dfsg-2+deb12u1 | 7.3.11+dfsg-2+deb12u2 | — |
| python3.11 | 3.11.2-6, 3.11.2-6+deb12u1 | 3.11.2-6+deb12u2 | — |
Alpine:v3.15(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.9.18-r0 | — |
Alpine:v3.16(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.10.13-r0 | — |
Alpine:v3.17(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.10.13-r0 | — |
Alpine:v3.18(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.11.5-r0 | — |
Alpine:v3.19(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.11.5-r0 | — |
Alpine:v3.20(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.11.5-r0 | — |
Alpine:v3.21(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.11.5-r0 | — |
Alpine:v3.22(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.11.5-r0 | — |
Alpine:v3.23(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.11.5-r0 | — |
Alpine:v3.24(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3 | — | 3.11.5-r0 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pypy3 | — | 7.3.13+dfsg-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pypy3 | — | 7.3.13+dfsg-1 | — |
Additional Vendor Advisories
(24)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2023-402172023-10-11
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.)
- Red HatRHSA-2023:5456IMPORTANT2023-08-25
RHSA-2023:5456 — Important
- Red HatRHSA-2023:5462IMPORTANT2023-08-25
RHSA-2023:5462 — Important
- Red HatRHSA-2023:5463IMPORTANT2023-08-25
RHSA-2023:5463 — Important
- Red HatRHSA-2023:5472IMPORTANT2023-08-25
RHSA-2023:5472 — Important
- Red HatRHSA-2023:5528IMPORTANT2023-08-25
RHSA-2023:5528 — Important
- Red HatRHSA-2023:5531IMPORTANT2023-08-25
RHSA-2023:5531 — Important
- Red HatRHSA-2023:5990IMPORTANT2023-08-25
RHSA-2023:5990 — Important
- Red HatRHSA-2023:5991IMPORTANT2023-08-25
RHSA-2023:5991 — Important
- Red HatRHSA-2023:5992IMPORTANT2023-08-25
RHSA-2023:5992 — Important
- Red HatRHSA-2023:5993IMPORTANT2023-08-25
RHSA-2023:5993 — Important
- Red HatRHSA-2023:5994IMPORTANT2023-08-25
RHSA-2023:5994 — Important
- Red HatRHSA-2023:5995IMPORTANT2023-08-25
RHSA-2023:5995 — Important
- Red HatRHSA-2023:5996IMPORTANT2023-08-25
RHSA-2023:5996 — Important
- Red HatRHSA-2023:5997IMPORTANT2023-08-25
RHSA-2023:5997 — Important
- Red HatRHSA-2023:5998IMPORTANT2023-08-25
RHSA-2023:5998 — Important
- Red HatRHSA-2023:6068IMPORTANT2023-08-25
RHSA-2023:6068 — Important
- Red HatRHSA-2023:6069IMPORTANT2023-08-25
RHSA-2023:6069 — Important
- Red HatRHSA-2023:6290IMPORTANT2023-08-25
RHSA-2023:6290 — Important
- Red HatRHSA-2023:6823IMPORTANT2023-08-25
RHSA-2023:6823 — Important
- Red HatRHSA-2023:6885IMPORTANT2023-08-25
RHSA-2023:6885 — Important
- UbuntuUSN-6513-1MEDIUM
Python vulnerabilities
- UbuntuUSN-6513-2MEDIUM
Python vulnerability
- UbuntuUSN-6891-1MEDIUM
Python vulnerabilities
Data Freshness Timeline
(refreshed 7× in last 7d / 46× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 135 total refreshes for this CVE.
- 2026-08-09 13:44 UTCEPSS rescore
- 2026-08-09 13:44 UTCEPSS rescore
- 2026-08-08 16:35 UTCEPSS rescore
- 2026-08-07 16:25 UTCEPSS rescore
- 2026-08-06 13:45 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-04 15:07 UTCEPSS rescore
- 2026-08-03 10:34 UTCEPSS rescore
- 2026-08-03 10:34 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-01 04:14 UTCEPSS rescore
- 2026-08-01 04:13 UTCEPSS rescore
- 2026-07-30 20:51 UTCOSV refresh
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-25 14:16 UTCEPSS rescore
- 2026-07-24 14:16 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 02:25 UTCEG score recompute
- 2026-07-22 23:12 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:06 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:07 UTCOSV refresh
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:05 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 18:01 UTCOSV refresh
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
Related CVEs(same vendor)
Same vendor
10 shownredhat
- CVE-2001-0825EG 10.0HIGH
- CVE-2001-0554EG 10.0EPSS p98HIGH
- CVE-2001-0414EG 10.0EPSS p100HIGH
- CVE-2001-0191EG 10.0EPSS p92HIGH
- CVE-2001-0301EG 10.0EPSS p90HIGH
- CVE-2001-0197EG 10.0EPSS p96HIGH
- CVE-2001-0233EG 10.0EPSS p96HIGH
- CVE-2001-0010EG 10.0EPSS p98HIGH
- CVE-2001-0011EG 10.0EPSS p94HIGH
- CVE-2001-0013EG 10.0EPSS p95HIGH
Frequently asked(5)
What is CVE-2023-40217?
When was CVE-2023-40217 disclosed?
Is CVE-2023-40217 actively exploited?
What is the CVSS score of CVE-2023-40217?
How do I remediate CVE-2023-40217?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-40217
Is Your Infrastructure Affected by CVE-2023-40217?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.