# CVE-2026-2646: Heap buffer overflow in session parsing with wolfSSL_d2i_SSL_SESSION() function

- Severity: Medium 5.0 (CVSS:4.0, scored by wolfSSL) `CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`
- 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 7% of CVEs (2026-11-30)
- Published: 2026-03-19T17:25:42.810Z
- Modified: 2026-06-17T10:31:27.500Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: wolfSSL

## Description

A heap-buffer-overflow vulnerability exists in wolfSSL's wolfSSL_d2i_SSL_SESSION() function. When deserializing session data with SESSION_CERTS enabled, certificate and session id lengths are read from an untrusted input without bounds validation, allowing an attacker to overflow fixed-size buffers and corrupt heap memory. A maliciously crafted session would need to be loaded from an external source to trigger this vulnerability. Internal sessions were not vulnerable.

(As written by CVE List.)

## Affected

- wolfssl wolfssl: up to 5.8.4; before 5.9.0

## Every score

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

## References

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

## Sources

- CVE List: [CVE-2026-2646](https://www.cve.org/CVERecord?id=CVE-2026-2646), CVE Terms of Use, modified 2026-03-19
- NVD: [CVE-2026-2646](https://nvd.nist.gov/vuln/detail/CVE-2026-2646), Public domain, modified 2026-06-17

---

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