
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-5642 affects CPython 3.9 and earlier versions, where the software doesn't disallow configuring an empty list ('[]') for SSLContext.setnpnprotocols(), which is an invalid value for the underlying OpenSSL API. This vulnerability was discovered on June 27, 2024, and is rated as low severity. The issue affects Python implementations that support NPN (Next Protocol Negotiation) functionality (Python Security, NVD).
The vulnerability occurs when an empty list is provided to SSLContext.setnpnprotocols(), which results in a buffer over-read when NPN is used. This is related to OpenSSL's SSLselectnext_proto function behavior. The issue has been assigned a CVSS v3.1 base score of 6.5 (Medium) by CISA-ADP, with attack vector being Network (AV:N), attack complexity Low (AC:L), and requiring no privileges (PR:N) or user interaction (UI:N) (Snyk, OpenWall).
When exploited, this vulnerability can result in a buffer over-read condition, potentially leading to information disclosure. The impact is considered low severity due to two main factors: NPN is not widely used in modern implementations, and specifying an empty list as a parameter is uncommon in practice, as typically a protocol name would be configured (JBP Blog).
Several mitigation options are available: 1) Upgrade to Python 3.10 or later where NPN isn't supported, 2) Avoid using NPN via SSLContext.setnpnprotocols(), or 3) Avoid providing an empty list as a parameter to SSLContext.setnpnprotocols(). For systems that cannot be upgraded, ensuring that valid protocol names are always configured when using NPN is recommended (Python Security).
The vulnerability has been acknowledged by major organizations including NetApp, who have issued advisories for their affected products. The security community has generally concurred with the low severity rating, given the limited scope of impact and the fact that NPN is largely deprecated (NetApp Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."