{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-5642","id":"CVE-2024-5642","title":"Buffer overread when using an empty list with SSLContext.set_npn_protocols()","description":"CPython 3.9 and earlier doesn't disallow configuring an empty list (\"[]\") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a p","descriptionLong":"CPython 3.9 and earlier doesn't disallow configuring an empty list (\"[]\") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).","published":"2024-06-27T21:05:31.281Z","updated":"2026-11-10T13:10:30.949357406Z","reserved":"2024-06-04T18:40:21.539Z","status":"Deferred","rejected":false,"assigner":"PSF","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","rating":"medium","source":"OSV"}],"rating":"medium","products":["Python Software Foundation CPython"],"affectedProducts":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"3.9.24","status":"affected","versionType":"python"},{"version":"3.10.0a1","lessThan":"3.10.0b1","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":["BIT-libpython-2024-5642","BIT-python-2024-5642","BIT-python-min-2024-5642","PSF-2024-6"],"references":[{"url":"https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html","tags":["third-party-advisory","x_transferred","advisory","web"]},{"url":"https://github.com/python/cpython/pull/23014","tags":["mitigation","x_transferred","fix","web"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e","tags":["patch","x_transferred","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/28/4","tags":["x_transferred","web"]},{"url":"https://github.com/python/cpython/issues/121227","tags":["issue-tracking","x_transferred","report"]},{"url":"https://security.netapp.com/advisory/ntap-20240726-0005/","tags":["x_transferred","advisory","web"]},{"url":"https://github.com/python/cpython/commit/a2cdbb6e8188ba9ba8b356b28d91bff60e86fe31","tags":["patch","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5642.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5642","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00744,"epssPercentile":0.55537,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-5642","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5642","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-5642","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-5642","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["python"],"critical":[],"attention":null}