Vulnerabilities / CVE-2026-4395

critical

CVE-2026-4395

Heap-based buffer overflow in the KCAPI ECC code path of wc_ecc_import ...

Published Modified CWE 122
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Julia1.3CVSS: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

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Julia (low).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.23wolfssl5.9.1-r0
alpine 3.24wolfssl5.9.0-r0
alpine edgewolfssl5.9.0-r0
debian 11wolfsslno fix listed
debian 12wolfsslno fix listed
debian 13wolfsslno fix listed
echowolfsslno fix listed
julia::Julia Ecosystem Security AdvisorieswolfSSL_jll5.9.2+0
rapidfort alpine 3.20wolfssl5.9.0-r0
rapidfort alpine 3.21wolfssl5.9.0-r0
rapidfort alpine 3.22wolfssl5.9.0-r0
rapidfort debian 12wolfssl0:5.9.0-0.1
Show all 13 entries from 13 sources
SourcePackageFixed in
alpine 3.23wolfssl5.9.1-r0
alpine 3.24wolfssl5.9.0-r0
alpine edgewolfssl5.9.0-r0
debian 11wolfsslno fix listed
debian 12wolfsslno fix listed
debian 13wolfsslno fix listed
echowolfsslno fix listed
julia::Julia Ecosystem Security AdvisorieswolfSSL_jll5.9.2+0
rapidfort alpine 3.20wolfssl5.9.0-r0
rapidfort alpine 3.21wolfssl5.9.0-r0
rapidfort alpine 3.22wolfssl5.9.0-r0
rapidfort debian 12wolfssl0:5.9.0-0.1
rapidfort debian 13wolfssl0:5.9.0-0.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.