# CVE-2026-4395: Heap-based buffer overflow in wc\_ecc\_import\_x963\_ex KCAPI path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 1.3
- **CVSS:** 1.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Proof of concept; AU: Y; R: U; V: D; RE: L; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.69% (percentile 48, 2026-11-26)
- **CWE:** CWE-122
- **Published:** 2026-03-19T20:41:55.642Z
- **Modified:** 2026-06-17T10:56:31.190Z

## Who should check

- Anyone running wolfssl \<= 5.8.4

## 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 and fixed versions

- wolfssl: \<= 5.8.4 (cvelist)

## Mitigation

- Vendor workaround: Build wolfSSL without WOLFSSL\_KCAPI\_ECC (this define is not enabled by default).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-4395. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-4395.md
Affected: wolfssl <= 5.8.4
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for wolfssl: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-4395 being exploited?

There is no confirmed exploitation: CVE-2026-4395 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.69% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-4395?

Low: CVSS 1.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-4395?

wolfssl \<= 5.8.4.

### Is there a fix for CVE-2026-4395?

No fixed version is listed in the sources yet. Vendor workaround: Build wolfSSL without WOLFSSL\_KCAPI\_ECC (this define is not enabled by default).

### How do I check if I'm affected by CVE-2026-4395?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/wolfSSL/wolfssl/pull/9988>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-4395>

HTML: <https://flawdb.com/CVE-2026-4395> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-4395>
