CVE-2026-4395: Heap-based buffer overflow in wc_ecc_import_x963_ex KCAPI path
Heap-based buffer overflow in the KCAPI ECC code path of wceccimportx963ex() in wolfSSL wolfcrypt allows a remote attacker to write attacker-controlled data past the bounds of the pubkeyraw buffer via a crafted oversized EC public key point. The WOLFSSLKCAPIECC code path copies the input to key->pubkeyraw (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.
Affected Software
Remediation
Information
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2026-4395?
CVE-2026-4395 has been classified as a high severity vulnerability due to the potential for remote code execution.
How do I fix CVE-2026-4395?
To fix CVE-2026-4395, update to the latest version of wolfSSL wolfCrypt where the vulnerability has been addressed.
What does CVE-2026-4395 affect?
CVE-2026-4395 affects the EC public key import functionality of the wolfSSL wolfCrypt library.
What type of vulnerability is CVE-2026-4395?
CVE-2026-4395 is a heap-based buffer overflow vulnerability.
Who can exploit CVE-2026-4395?
CVE-2026-4395 can be exploited by remote attackers with the ability to send crafted oversized EC public key data.