CVE-2026-4395

Heap-based buffer overflow in wc_ecc_import_x963_ex KCAPI path

State
Published
Severity
1.3 Low
Published
Mar 19, 2026
Updated
Mar 20, 2026
Reserved
Mar 18, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.01.3 LowCVSS: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:AmberwolfSSL

Weaknesses

Affected Products

ProductVersions
wolfsslwolfSSL
  • 5.8.4 and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.