CVE-2024-5642
Python OpenSSL NPN Configuration Buffer Over-read
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).
INFO
Published Date :
June 27, 2024, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 9:48 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
2.5
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2024-5642 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-5642
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-5642
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-5642
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2024/06/28/4 Added Reference https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e Added Reference https://github.com/python/cpython/issues/121227 Added Reference https://github.com/python/cpython/pull/23014 Added Reference https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html Added Reference https://mail.python.org/archives/list/[email protected]/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/ Added Reference https://security.netapp.com/advisory/ntap-20240726-0005/ -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 06, 2024
Action Type Old Value New Value Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L -
CVE Modified by [email protected]
Jul. 28, 2024
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 [email protected]
Jul. 01, 2024
Action Type Old Value New Value Added Reference Python Software Foundation https://github.com/python/cpython/issues/121227 [No types assigned] -
CVE Modified by [email protected]
Jun. 28, 2024
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 [email protected]
Jun. 27, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Jun. 27, 2024
Action Type Old Value New Value Added Reference Python Software Foundation https://mail.python.org/archives/list/[email protected]/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/ [No types assigned] Added Reference Python Software Foundation https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e [No types assigned] -
CVE Received by [email protected]
Jun. 27, 2024
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://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html [No types assigned] Added Reference Python Software Foundation https://github.com/python/cpython/pull/23014 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-5642
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-5642
weaknesses.