Mbed TLS and TF-PSA-Crypto Finite-Field Diffie-Hellman Lack of Contributory Behavior Vulnerability

Vulnerability

A vulnerability exists in Mbed TLS versions 3.5.x and 3.6.x prior to 3.6.5, as well as in TF-PSA-Crypto 1.0. The issue arises from improper input validation in finite-field Diffie-Hellman (FFDH) key agreement, allowing a peer to manipulate the shared secret into a limited range of values. This lack of contributory behavior could be problematic for certain protocols that rely on it, although TLS 1.3 is not affected due to its handshake mechanics. The vulnerability can be exploited by the peer or, in some protocols, by an active network attacker.

Impact

Exploitation of this vulnerability allows a peer to control the FFDH shared secret, forcing it into a small set of values. While this could disrupt protocols requiring contributory behavior, TLS 1.3 is not impacted for specific reasons related to how the protocol manages key agreement.

Remediation

Users should upgrade to Mbed TLS 3.6.6 or later, or TF-PSA-Crypto 1.1.0 or later. For those maintaining branches with backported bug fixes, relevant commits are available.

Added: Apr 1, 2026, 8:25 PM
Updated: Apr 1, 2026, 8:25 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
7.0
remediation
0.0
relevance
5.1
threat
0.0
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.