CVE-2026-4395

Critical

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductWolfssl
PublishedMar 19, 2026
First seenMar 19, 2026
Weakness typeCWE-122CWE-122

How to fix

Update
  • wolfssl wolfssl5.9.0 or later

Affected products

ProductAffected versionsFixed in
wolfssl wolfsslv < 5.9.05.9.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.