CVE-2023-40217
Python · 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 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.)
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.797% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.3 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Assessment source · checked 2026-11-19T16:56:49.111Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T16:56:49.111Z | Ubuntu Security |
| epss | verified | 2026-11-19T16:04:36.838Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:57:31.123Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:56:58.029Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:58.029Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.11",
"debian": "https://tracker.debian.org/pkg/python3.11",
"source": "https://ubuntu.com/security/cve?package=python3.11",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.11",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.11.5-1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.11.6-3",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.11.4-1~23.04.1",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "oracular"
},
{
"pocket": "esm-apps",
"status": "released",
"component": null,
"description": "3.11.0~rc1-1~22.04.1~esm1",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.12",
"debian": "https://tracker.debian.org/pkg/python3.12",
"source": "https://ubuntu.com/security/cve?package=python3.12",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.12",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.12",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.12.0-1",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.12.0-6",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.12.0-6",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.10",
"debian": "https://tracker.debian.org/pkg/python3.10",
"source": "https://ubuntu.com/security/cve?package=python3.10",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.10",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.10.13-1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.10.12-1~22.04.3",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://www.python.org/dev/security/",
"tags": [
"x_transferred"
]
},
{
"url": "https://mail.python.org/archives/list/security-announce%40python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html",
"name": "[debian-lts-announce] 20230920 [SECURITY] [DLA 3575-1] python2.7 security update",
"tags": [
"mailing-list",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20231006-0014/",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2023/10/msg00017.html",
"name": "[debian-lts-announce] 20231011 [SECURITY] [DLA 3614-1] python3.7 security update",
"tags": [
"mailing-list",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/11/msg00005.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T21:49:23.434Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2023-40217",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-10-02T16:31:39.875777Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-10-02T16:32:08.930Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| upstream-release | upstream / upstream | python3.11 | Not a distribution channel | 3.11.5-1 | Official record |
| distribution-package | Ubuntu / lunar | python3.11 | security | 3.11.4-1~23.04.1 | Official record |
| distribution-package | Ubuntu / jammy | python3.11 | esm-apps | 3.11.0~rc1-1~22.04.1~esm1 | Official record |
| upstream-release | upstream / upstream | python3.12 | Not a distribution channel | 3.12 | Official record |
| upstream-release | upstream / upstream | python3.10 | Not a distribution channel | 3.10.13-1 | Official record |
| distribution-package | Ubuntu / jammy | python3.10 | security | 3.10.12-1~22.04.3 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:56:58.029ZArchived source JSON
Source publication: 2023-08-25T00:00:00.000Z
Source modification: 2025-11-03T21:49:23.434ZDocument fingerprint
de750778cbbd5d2ecb4232994a46d55d9d461d0aeaa914eda7356f21581dfc5a - Ubuntu SecurityConsulted: 2026-11-19T16:56:49.111ZArchived source JSON
Source publication: 2023-08-25T00:00:00.000Z
Source modification: 2025-06-24T15:12:20.430ZDocument fingerprint
d0b4f0f3c58eb1d54bc58a7653225a4d83c2991a9222afcf2468287c324f7ee3 - Ubuntu SecurityConsulted: 2026-11-19T16:57:17.250ZArchived source JSON
Source publication: 2023-08-25T00:00:00.000Z
Source modification: 2025-06-24T15:12:20.430ZDocument fingerprint
9cd5740f6ee87b91c9dd35271e23a7383862dfa05eb16a6af456f24a4bdb5995 - Ubuntu SecurityConsulted: 2026-11-19T16:57:31.123ZArchived source JSON
Source publication: 2023-08-25T00:00:00.000Z
Source modification: 2025-06-24T15:12:20.430ZDocument fingerprint
c5ca5517f6283547c494a17b9b26fdba5781dae5a0e1c307f9becdc61bd39396 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:36.838ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
752b5a4ab7063ebae6041b8a2218e2c7a480f9f66d4152a818c6a0713b1fa460
Official status history
- UNKNOWN → PUBLISHED · · evidence