Request an audit

// CVE · Published · NVD

CVE-2026-348729.1 · Critical · CVSS 3.1

Mbed TLS FFDH improper input validation.

FFDH key exchange lacks contributory-behaviour / peer-key validation, enabling protocol-level abuse. Found independently by Eva Crystal (0xiviel).

Published
Vendor
Product
Mbed TLS
Affected
Mbed TLS 3.5.x and 3.6.x through 3.6.5, TF-PSA-Crypto 1.0
Fixed in
Mbed TLS 3.6.6, TF-PSA-Crypto 1.1.0
Research area
Credit
Eva Crystal (0xiviel), XSource Security
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Summary

In finite-field Diffie-Hellman key agreement with PSA_ALG_FFDH, the built-in driver did not validate the peer’s public key the way RFC 7919 and NIST SP 800-56A require. A peer could send a public value outside the range [2, p-2], and the shared secret then collapsed into a small set of values chosen by that peer.

Impact

Loss of contributory behaviour: the shared secret no longer depends on both parties. How much that matters depends on the protocol around it. TLS 1.3 is not affected because the handshake transcript and random values still bind the key, but any custom use of FFDH is. NVD scores the record 9.1 with CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

Affected and fixed

  • Affected: Mbed TLS up to 3.6.5, TF-PSA-Crypto 1.0.0
  • Fixed: Mbed TLS 3.6.6, TF-PSA-Crypto 1.1.0
  • Work-around: check the peer key is within [2, p-2] before the key agreement

Timeline

  • 31 Mar 2026: Mbed TLS security advisory published
  • 1 Apr 2026: CVE-2026-34872 published on NVD

Credit

Found independently by Eva Crystal (0xiviel), XSource Security, and another reporter, as credited in the advisory.

More disclosures

All disclosures →

Published · NVD
CVE-2026-34876

Mbed TLS out-of-bounds read

Out-of-bounds read in mbedtls_ccm_finish(): an oversized tag_len in the multipart CCM API exposes adjacent CCM context data. Discovered through the Intigriti Trusted Firmware program.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
7.5 · High · CVSS 3.1