CVE-2024-5642
Python Interpreter vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


SourceThis report was generated using AI

Related Python Interpreter vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12084MEDIUM6.3
  • Python InterpreterPython Interpreter
  • python-3.14
NoYesDec 03, 2025
CVE-2025-13836MEDIUM6.3
  • Python InterpreterPython Interpreter
  • python39-numpy
NoYesDec 01, 2025
CVE-2025-8291MEDIUM4.3
  • Python InterpreterPython Interpreter
  • mingw32-python3-tkinter
NoYesOct 07, 2025
CVE-2025-13837LOW2.1
  • Python InterpreterPython Interpreter
  • python3.12
NoYesDec 01, 2025
CVE-2025-6075LOW1.8
  • Python InterpreterPython Interpreter
  • python39:3.9::python39-setuptools-wheel
NoYesOct 31, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management