# CVE-2026-4395: Heap-based buffer overflow in wc_ecc_import_x963_ex KCAPI path

- Severity: Low 1.3 (CVSS:4.0, scored by wolfSSL) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/AU:Y/R:U/V:D/RE:L/U:Amber`
- 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.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-03-19T20:41:55.642Z
- Modified: 2026-06-17T10:56:31.190Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: wolfSSL

## Description

Heap-based buffer overflow in the KCAPI ECC code path of wc_ecc_import_x963_ex() in wolfSSL wolfcrypt allows a remote attacker to write attacker-controlled data past the bounds of the pubkey_raw buffer via a crafted oversized EC public key point. The WOLFSSL_KCAPI_ECC code path copies the input to key->pubkey_raw (132 bytes) using XMEMCPY without a bounds check, unlike the ATECC code path which includes a length validation. This can be triggered during TLS key exchange when a malicious peer sends a crafted ECPoint in ServerKeyExchange.

(As written by CVE List.)

## Affected

- wolfSSL wolfssl: up to 5.8.4; before 5.9.0

## Every score

- wolfSSL: CVSS:4.0 1.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/AU:Y/R:U/V:D/RE:L/U:Amber`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

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

---

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