You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
This CVE record is not being prioritized for NVD enrichment efforts due to resource or other concerns.
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 protocol name would be configured).
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
CVE Modified by Python Software Foundation7/28/2024 10:15:11 AM
Action
Type
Old Value
New Value
Added
Reference
Python Software Foundation https://security.netapp.com/advisory/ntap-20240726-0005/ [No types assigned]
CVE Modified by Python Software Foundation7/01/2024 10:15:05 AM
Action
Type
Old Value
New Value
Added
Reference
Python Software Foundation https://github.com/python/cpython/issues/121227 [No types assigned]
CVE Modified by Python Software Foundation6/28/2024 3:15:07 PM
Action
Type
Old Value
New Value
Added
Reference
Python Software Foundation http://www.openwall.com/lists/oss-security/2024/06/28/4 [No types assigned]
CVE Modified by Python Software Foundation6/27/2024 7:15:50 PM
Action
Type
Old Value
New Value
CVE Modified by Python Software Foundation6/27/2024 6:15:10 PM
Action
Type
Old Value
New Value
Added
Reference
Python Software Foundation https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e [No types assigned]
Added
Reference
Python Software Foundation https://mail.python.org/archives/list/[email protected]/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/ [No types assigned]
New CVE Received from Python Software Foundation6/27/2024 5:15:16 PM
Action
Type
Old Value
New Value
Added
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 protocol name would be configured).
Added
Reference
Python Software Foundation https://github.com/python/cpython/pull/23014 [No types assigned]
Added
Reference
Python Software Foundation https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html [No types assigned]
Quick Info
CVE Dictionary Entry: CVE-2024-5642 NVD
Published Date: 06/27/2024 NVD
Last Modified: 06/17/2026
Source: Python Software Foundation