Skip to content
Noroxi
NVD / CVE Program· CNA PSF

CVE-2024-5642: Buffer overread when using an empty list with SSLContext.set_npn_protocols()

Noroxi assessment

Priority: Monitor (action score 26/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.74% (FIRST EPSS); higher than 54.7% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Python Software Foundation CPython 3.10.0b1, 3.9.24.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to Python Software Foundation CPython 3.10.0b1, 3.9.24 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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

MediumCVSS 6.5 · v3.1—No exploit Fix available
Published
Jun 27, 2024
Updated
Jul 31, 2026
EPSS
0.7% · 54th percentile
CWE
—

Report tools

JSON

Action score

26

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.7%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2024-5642

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

—

Versions reported by the vendor

Affected version ranges reported by the assigning authority (PSF). Independent of NVD's CPE analysis and usually ahead of it.

  • Python Software Foundation CPython

    • before 3.9.24affected · python
    • 3.10.0a1 and later · before 3.10.0b1affected · python

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8python39before 3.9.25-2.module_el8.10.0+4083+53cad1fb3.9.25-2.module_el8.10.0+4083+53cad1fb
AlmaLinux:8python39-attrsbefore 20.3.0-2.module_el8.6.0+2780+a40f65e120.3.0-2.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-cffibefore 1.14.3-2.module_el8.6.0+2780+a40f65e11.14.3-2.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-cffibefore 1.14.3-2.module_el8.6.0+3248+c431e88c1.14.3-2.module_el8.6.0+3248+c431e88c
AlmaLinux:8python39-chardetbefore 3.0.4-19.module_el8.6.0+2780+a40f65e13.0.4-19.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-cryptographybefore 3.3.1-3.module_el8.10.0+3765+2f9a457d3.3.1-3.module_el8.10.0+3765+2f9a457d
AlmaLinux:8python39-Cythonbefore 0.29.21-5.module_el8.6.0+3248+c431e88c0.29.21-5.module_el8.6.0+3248+c431e88c
AlmaLinux:8python39-Cythonbefore 0.29.21-5.module_el8.6.0+2780+a40f65e10.29.21-5.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-debugbefore 3.9.25-2.module_el8.10.0+4083+53cad1fb3.9.25-2.module_el8.10.0+4083+53cad1fb
AlmaLinux:8python39-develbefore 3.9.25-2.module_el8.10.0+4083+53cad1fb3.9.25-2.module_el8.10.0+4083+53cad1fb
AlmaLinux:8python39-idlebefore 3.9.25-2.module_el8.10.0+4083+53cad1fb3.9.25-2.module_el8.10.0+4083+53cad1fb
AlmaLinux:8python39-idnabefore 2.10-4.module_el8.10.0+3849+a48d89aa2.10-4.module_el8.10.0+3849+a48d89aa
AlmaLinux:8python39-iniconfigbefore 1.1.1-2.module_el8.6.0+2780+a40f65e11.1.1-2.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-libsbefore 3.9.25-2.module_el8.10.0+4083+53cad1fb3.9.25-2.module_el8.10.0+4083+53cad1fb
AlmaLinux:8python39-lxmlbefore 4.6.5-1.module_el8.6.0+2780+a40f65e14.6.5-1.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-lxmlbefore 4.6.5-1.module_el8.6.0+3248+c431e88c4.6.5-1.module_el8.6.0+3248+c431e88c
AlmaLinux:8python39-mod_wsgibefore 4.7.1-7.module_el8.10.0+3989+a618fe15.14.7.1-7.module_el8.10.0+3989+a618fe15.1
AlmaLinux:8python39-more-itertoolsbefore 8.5.0-2.module_el8.6.0+2780+a40f65e18.5.0-2.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-numpybefore 1.19.4-3.module_el8.6.0+3248+c431e88c1.19.4-3.module_el8.6.0+3248+c431e88c
AlmaLinux:8python39-numpybefore 1.19.4-3.module_el8.6.0+2780+a40f65e11.19.4-3.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-numpy-docbefore 1.19.4-3.module_el8.6.0+2780+a40f65e11.19.4-3.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-numpy-f2pybefore 1.19.4-3.module_el8.6.0+3248+c431e88c1.19.4-3.module_el8.6.0+3248+c431e88c
AlmaLinux:8python39-numpy-f2pybefore 1.19.4-3.module_el8.6.0+2780+a40f65e11.19.4-3.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-packagingbefore 20.4-4.module_el8.6.0+2780+a40f65e120.4-4.module_el8.6.0+2780+a40f65e1

+96

Other highest-scoring records for the same primary product.

  • CVE-2026-115557Distrust compromised intermediate certificates in ssl module
    37Monitor
  • CVE-2025-4517Arbitrary writes via tarfile realpath overflow
    37Monitor
  • CVE-2026-19445Use-after-free of a server-side SSLContext when sni_callback switches contexts
    36Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2024-4032Jun 17, 2024 · Incorrect IPv4 and IPv6 private ranges
    30Monitor
  • ← EarlierCVE-2024-0397Jun 17, 2024 · Memory race condition in ssl.SSLContext certificate store methods
    29Monitor
  • Later →CVE-2024-3219Jul 29, 2024 · Pure-Python fallback of socket.socketpair() doesn’t authenticate peer connection
    20Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Python Software Foundation CPython3.10.0b1Vendor (CNA)
Python Software Foundation CPython3.9.24Vendor (CNA)
almalinux:python-unversioned-command3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python33.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-debug3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-devel3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-idle3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-libs3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-test3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python3-tkinter3.9.25-2.el9_7 · AlmaLinux:9Package registry (OSV)
almalinux:python393.9.25-2.module_el8.10.0+4083+53cad1fb · AlmaLinux:8Package registry (OSV)
almalinux:python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
debian:pypy37.3.10+dfsg-1 · Debian:12Package registry (OSV)
opensuse:python33.6.15-150300.10.72.1 · openSUSE:Leap Micro 5.5Package registry (OSV)
opensuse:python3-core3.6.15-150300.10.72.1 · openSUSE:Leap Micro 5.5Package registry (OSV)
opensuse:python3-documentation3.6.15-150300.10.72.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python383.8.19-7.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python393.9.19-150300.4.49.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python39-core3.9.19-150300.4.49.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python39-documentation3.9.19-150300.4.49.1 · openSUSE:Leap 15.5Package registry (OSV)
red hat:python-unversioned-command0:3.9.25-2.el9_7 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python30:3.9.25-2.el9_7 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:python3-debug0:3.9.25-2.el9_7 · Red Hat:enterprise_linux:9::crbPackage registry (OSV)
red hat:python3-devel0:3.9.25-2.el9_7 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python3-idle0:3.9.25-2.el9_7 · Red Hat:enterprise_linux:9::crbPackage registry (OSV)
red hat:python3-libs0:3.9.25-2.el9_7 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:python3-test0:3.9.25-2.el9_7 · Red Hat:enterprise_linux:9::crbPackage registry (OSV)
red hat:python3-tkinter0:3.9.25-2.el9_7 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)

+24

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

No history yet (it accumulates with the daily EPSS job).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
none
Availability
low · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
Low
Integrity impact
None
Availability impact
Low

Weakness class (CWE)

—

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records