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

- Severity: Medium 6.3 (CVSS:4.0, scored by wolfSSL) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-04-09T23:29:27.577Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: wolfSSL

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

(As written by CVE List.)

## Affected

- wolfSSL wolfSSL: before 5.9.1

## Every score

- wolfSSL: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/wolfssl/wolfssl/pull/10092> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2026-5460](https://www.cve.org/CVERecord?id=CVE-2026-5460), CVE Terms of Use, modified 2026-04-10
- NVD: [CVE-2026-5460](https://nvd.nist.gov/vuln/detail/CVE-2026-5460), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-5460 · Whole record: https://cve.day/CVE-2026-5460.json · Rebuilt by cve.day 2026-11-25T22:59:18.468Z
