CVE-2026-5460 Heap Use-After-Free in PQC Hybrid KeyShare Error Cleanup in wolfSSL TLS 1.3

Medium 6.3 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-5460?

CVE-2026-5460 is a medium-severity vulnerability in Wolfssl Wolfssl, published on 9 Apr 2026.

Official description

A heap use-after-free exists in wolfSSL's TLS 1.3 post-quantum cryptography (PQC) hybrid KeyShare processing. In the error handling path of TLSX_KeyShare_ProcessPqcHybridClient() in src/tls.c, the inner function TLSX_KeyShare_ProcessPqcClient_ex() frees a KyberKey object upon encountering an error. The caller then invokes TLSX_KeyShare_FreeAll(), which attempts to call ForceZero() on the already-freed KyberKey, resulting in writes of zero bytes over freed heap memory.

Weakness: CWE-416

Which versions are affected by CVE-2026-5460?

It affects 1 product.

Products include Wolfssl Wolfssl.

How do I fix CVE-2026-5460?

Upgrade to a fixed version.

Is CVE-2026-5460 being exploited?

There is no known exploitation of CVE-2026-5460 in the wild and no public exploit code.

All Wolfssl Wolfssl vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-5460, GHSA-w87p-fqgx-cqq8, JLSEC-2026-725, UBUNTU-CVE-2026-5460.

Is CVE-2026-5460 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free