{"id":"CVE-2026-4395","published":"2026-03-19T20:41:55Z","modified":"2026-03-20T17:09:33Z","title":"Heap-based buffer overflow in wc_ecc_import_x963_ex KCAPI path","vendor":"wolfSSL","product":"wolfssl","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.3,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00391,"percentile":0.34108,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/wolfSSL/wolfssl/pull/9988","tags":["patch"]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":6.82},{"name":"CVSS severity","points":0.91}]},"vendorSlug":"wolfssl","affectedVersions":[{"vendor":"wolfSSL","product":"wolfssl","versions":["<= 5.8.4"]}],"solutions":{"items":["Update to the wolfSSL version containing the fix from PR #9988, which adds a bounds check on inLen before the XMEMCPY to pubkey_raw in the KCAPI ECC code path."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Build wolfSSL without WOLFSSL_KCAPI_ECC (this define is not enabled by default)."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-100","name":"Overflow Buffers"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-20T17:09:25.537926Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-13235","exploited":false,"provenance":"source"}}