All CVEs / Python Software Foundation
CVE-2024-5642Python Software Foundation CPython
Medium 6.5 No auth needed
Follow: this CVE · Python Software Foundation · Python Software Foundation CPython We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 69
- Auth required
- No
- Published
- Jun 27, 2024
- Updated
- Jul 31, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
What happens
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).
What to do
- Apply the vendor's security update for CPython.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- Python Software Foundation · CPython
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: python3.9 security update · Red Hat · RHSA-2025:23342 · Dec 19, 2025 Medium
- Red Hat Security Advisory: python39:3.9 security update · Red Hat · RHSA-2025:23530 · Dec 18, 2025 High
- Multiple Vulnerabilities in Ruggedcom Rox Before V2.17.0 · Siemens · SSA-202008 · Dec 9, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.