Python2.7: CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for
Affects python2.7Source GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 6.5 Medium.
Data as of 24 Nov 2026, 19:25 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 27 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 22.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSpython3.9pkg:deb/ubuntu/python3.9?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in– |
Ubuntu Pro 16.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-infra-legacy/xenialOther threats | Affected
| Fixed in– |
Ubuntu Pro 16.04 LTSpython3.5pkg:deb/ubuntu/python3.5?arch=source&distro=esm-infra-legacy/xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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).
References
- ubuntu.com/security/CVE-2024-5642 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-5642 (opens in a new tab)
- jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html (opens in a new tab)
- github.com/python/cpython/pull/23014 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/ (opens in a new tab)
- openwall.com/lists/oss-security/2024/06/28/4 (opens in a new tab)