---
title: "wolfSSL ML-KEM: truncated ciphertext comparison breaks IND-CCA2, enables key recovery"
url: "https://pqt-19a6ffd695e12a.pages.dev/feed/2026-06-25-wolfssl-ml-kem-truncated-ciphertext-comparison-b/"
date: "2026-06-25"
classification: "Implementation vulnerability · Demonstrated"
action: "Patch"
affects: ["ML-KEM"]
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# wolfSSL ML-KEM: truncated ciphertext comparison breaks IND-CCA2, enables key recovery

2026-06-25 · Implementation vulnerability · Demonstrated · Action: patch

wolfSSL's hand-written AVX2 code compared only 1536 of 1568 ciphertext bytes in the Fujisaki-Okamoto check of ML-KEM-1024 decapsulation (CVE-2026-10097), and its ARM64 NEON code compared only about half of the ciphertext (CVE-2026-6330). The CVE record reports a proof of concept recovering a full ML-KEM-1024 private key in about 98% of runs with roughly 350 chosen ciphertexts against a static key; an ePrint paper by B. S. Das analyses the bug further. Both are logic errors in one library's assembly paths, fixed in wolfSSL 5.9.2; they do not affect ML-KEM itself.

- Affects: [ML-KEM](https://pqt-19a6ffd695e12a.pages.dev/algorithms/ml-kem/)

## Sources

- [CVE-2026-10097 record (wolfSSL, AVX2 ML-KEM-1024)](https://www.cve.org/CVERecord?id=CVE-2026-10097)
- [CVE-2026-6330 record (wolfSSL, ARM64 NEON)](https://www.cve.org/CVERecord?id=CVE-2026-6330)
- [wolfSSL security vulnerabilities page](https://www.wolfssl.com/docs/security-vulnerabilities/)

## Related entries

- 2026-07 · Standards action · [RFC 9954 published: Hybrid Key Exchange in TLS 1.3 (design document)](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-07-rfc-9954-published-hybrid-key-exchange-in-tls-1/)
- 2026-07-07 · Standards action · [IESG approves ML-KEM for IKEv2 (draft-ietf-ipsecme-ikev2-mlkem); RFC pending](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-07-07-iesg-approves-ml-kem-for-ikev2-draft-ietf-ipsecm/)
- 2026-06 · Standards action · [RFC 9980 (PQC in OpenPGP) and RFC 9958 (PQC for Engineers) published](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-06-rfc-9980-pqc-in-openpgp-and-rfc-9958-pqc-for-eng/)
- 2026-06-24 · Policy · [OMB M-26-15 directs agencies to execute PQC migration; plans due within 120 days](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-06-24-omb-m-26-15-directs-agencies-to-execute-pqc-migr/)
- 2026-03 · Standards action · [RFC 9935 and RFC 9936 published: ML-KEM in X.509 certificates and in CMS](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-03-rfc-9935-and-rfc-9936-published-ml-kem-in-x-509/)
- 2026-01-23 · Policy · [Germany: BSI TR-02102-1 version 2026-01 sets end dates for classical-only public-key use](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-01-23-germany-bsi-tr-02102-1-version-2026-01-sets-end/)
