Skip to main content
CVE-2024-5642VulnerabilityPublished Updated

Python2.7: CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for

Affects python2.7Source GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2024-5642· Medium 6.5

Not known to be exploited · CVSS 6.5 Medium.

Data as of 24 Nov 2026, 19:25 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Jun 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu Pro 22.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 2.7.18-8build1 – 2.7.18-13ubuntu1.5+esm9
21 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-apps/focalOther threatsAffected
  • 2.7.17-1 – 2.7.18~rc1-2
27 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSpython3.9pkg:deb/ubuntu/python3.9?arch=source&distro=esm-apps/focalOther threatsAffected
  • 3.9.0-5~20.04 – 3.9.5-3ubuntu0~20.04.1+esm11
15 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-infra/bionicOther threatsAffected
  • 2.7.14-2ubuntu2 – 2.7.17-1~18.04ubuntu1.13+esm15
36 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • 2.7.10-4ubuntu1 – 2.7.12-1ubuntu0~16.04.18+esm22
42 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSpython3.5pkg:deb/ubuntu/python3.5?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • 3.5.0-3 – 3.5.2-2ubuntu0~16.04.13+esm25
48 affected builds
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

Community reviews

Loading reviews…