CVE-2024-0397
Memory race condition in ssl.SSLContext certificate store methods
A defect was discovered in the Python “ssl” module where there is a memory race condition with the ssl.SSLContext methods “cert_store_stats()” and “get_ca_certs()”. The race condition can be triggered if the methods are called at the same time as certificates are loaded into the SSLContext, such as during the TLS handshake with a certificate directory configured. This issue is fixed in CPython 3.10.14, 3.11.9, 3.12.3, and 3.13.0a5.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.810% · 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:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.4 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
Assessment source · checked 2026-11-19T12:48:08.476Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:48:08.476Z | Ubuntu Security |
| epss | verified | 2026-11-19T16:04:37.769Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:48:13.341Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:57:03.664Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:03.664Z | CVE Program |
Affected versions and configuration
Python Software Foundation CPython; default status: unaffected: 0 to < 3.8.20 [affected; scheme: python]; 3.9.0 to < 3.9.20 [affected; scheme: python]; 3.10.0 to < 3.10.14 [affected; scheme: python]; 3.11.0 to < 3.11.9 [affected; scheme: python]; 3.12.0 to < 3.12.3 [affected; scheme: python]; 3.13.0a1 to < 3.13.0a5 [affected; scheme: python]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"repo": "https://github.com/python/cpython",
"vendor": "Python Software Foundation",
"product": "CPython",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "3.8.20",
"versionType": "python"
},
{
"status": "affected",
"version": "3.9.0",
"lessThan": "3.9.20",
"versionType": "python"
},
{
"status": "affected",
"version": "3.10.0",
"lessThan": "3.10.14",
"versionType": "python"
},
{
"status": "affected",
"version": "3.11.0",
"lessThan": "3.11.9",
"versionType": "python"
},
{
"status": "affected",
"version": "3.12.0",
"lessThan": "3.12.3",
"versionType": "python"
},
{
"status": "affected",
"version": "3.13.0a1",
"lessThan": "3.13.0a5",
"versionType": "python"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.4,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "HIGH",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-0397",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-06-20T15:52:27.499743Z"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:*"
],
"vendor": "python_software_foundation",
"product": "cpython",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "3.8.20",
"versionType": "python"
},
{
"status": "affected",
"version": "3.9.0",
"lessThan": "3.9.20",
"versionType": "python"
},
{
"status": "affected",
"version": "3.10.0",
"lessThan": "3.10.14",
"versionType": "python"
},
{
"status": "affected",
"version": "3.11.0",
"lessThan": "3.11.9",
"versionType": "python"
},
{
"status": "affected",
"version": "3.12.0",
"lessThan": "3.12.3",
"versionType": "python"
},
{
"status": "affected",
"version": "3.13.0a1",
"lessThan": "3.13.0a5",
"versionType": "python"
}
],
"defaultStatus": "unaffected"
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"type": "CWE",
"cweId": "CWE-362",
"description": "CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"
}
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-09-17T18:24:43.948Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/python/cpython/issues/114572",
"tags": [
"issue-tracking",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/pull/114573",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://mail.python.org/archives/list/[email protected]/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/",
"tags": [
"vendor-advisory",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2024/06/17/2",
"tags": [
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20250411-0006/"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T21:50:55.091Z"
}
}
]
}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": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needs-triage",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.12.3-1",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.12.3",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.12.4-1ubuntu1",
"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": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.10.14",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.10.12-1~22.04.5",
"release_codename": "jammy"
},
{
"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 JSONUbuntu 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": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needs-triage",
"release_codename": "mantic"
},
{
"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 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.12 | Not a distribution channel | 3.12.3 | Official record |
| upstream-release | upstream / upstream | python3.10 | Not a distribution channel | 3.10.14 | Official record |
| distribution-package | Ubuntu / jammy | python3.10 | security | 3.10.12-1~22.04.5 | 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:57:03.664ZArchived source JSON
Source publication: 2024-06-17T15:09:40.896Z
Source modification: 2025-11-03T21:50:55.091ZDocument fingerprint
b11b118bf8a8ba7894577df09f79ff30cd3a672f35331fc9e04b3a315dde03b5 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T12:48:08.476ZArchived source JSON
Source publication: 2024-06-17T16:15:00.000Z
Source modification: 2025-06-24T15:16:08.217ZDocument fingerprint
c5ca5517f6283547c494a17b9b26fdba5781dae5a0e1c307f9becdc61bd39396 - Ubuntu SecurityConsulted: 2026-11-19T12:48:13.341ZArchived source JSON
Source publication: 2024-06-17T16:15:00.000Z
Source modification: 2025-06-24T15:16:08.217ZDocument fingerprint
d0b4f0f3c58eb1d54bc58a7653225a4d83c2991a9222afcf2468287c324f7ee3 - Ubuntu SecurityConsulted: 2026-11-19T12:48:41.523ZArchived source JSON
Source publication: 2024-06-17T16:15:00.000Z
Source modification: 2025-06-24T15:16:08.217ZDocument fingerprint
9cd5740f6ee87b91c9dd35271e23a7383862dfa05eb16a6af456f24a4bdb5995 - FIRST EPSSConsulted: 2026-11-19T16:04:37.769ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
eeab810781addaf3718bffbbfbd9069ab904b94a362008ceb3a8de1b19f5ac77
Official status history
- UNKNOWN → PUBLISHED · · evidence