CVE-2026-34875

mbedtls: Mbed TLS and TF-PSA-Crypto: Arbitrary code execution due to buffer overflow in FFDH key export

Published Apr 1, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
An issue was discovered in Mbed TLS through 3.6.5 and TF-PSA-Crypto 1.0.0. A buffer overflow can occur in public key export for FFDH keys.

Analysis

AI-generated

Technical impact

A buffer overflow occurs during public key export for FFDH keys in Mbed TLS and TF‑PSA‑Crypto, allowing an attacker to execute arbitrary code. The flaw is a classic memory corruption issue (CWE‑120). If exploited, an attacker can run malicious code with the same privileges as the affected application, potentially compromising confidentiality, integrity, and availability of the device or system.

Affected Systems

ARM’s Mbed TLS versions up to and including 3.6.5, and TF‑PSA‑Crypto version 1.0.0 are vulnerable. These are commonly used on embedded devices that rely on cryptographic key generation and export functions.

Risk and Exploitability

The CVSS score of 9.8 classifies this as critical, yet the EPSS score of less than 1% suggests exploiting this bug is currently unlikely. It is not listed in the CISA KEV catalog. Based on the description, the attacker needs to trigger a key export operation—likely via an exposed API or internal process—before the overflow occurs. This inferred attack vector may allow remote exploitation if the key export function is reachable from a networked interface. The exploit would require a crafted key export request that overflows the buffer and injects code.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Mbed TLS patch (v3.6.6 or newer).
  • Apply the latest TF‑PSA‑Crypto patch (v1.0.1 or newer).
  • If updating is not immediately possible, restrict or disable access to the FFDH key export functionality within the application.
  • Monitor logs for unusual key export activity and perform integrity checks on critical binaries.

Generated by OpenCVE AI on April 6, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Trustedfirmware
Trustedfirmware mbed Tls
Trustedfirmware tf-psa-crypto
CPEs cpe:2.3:a:arm:mbed_tls:*:*:*:*:*:*:*:*
cpe:2.3:a:arm:tf-psa-crypto:*:*:*:*:*:*:*:*
cpe:2.3:a:trustedfirmware:mbed_tls:*:*:*:*:*:*:*:*
cpe:2.3:a:trustedfirmware:tf-psa-crypto:*:*:*:*:*:*:*:*
Vendors & Products Arm
Arm mbed Tls
Arm tf-psa-crypto
Trustedfirmware
Trustedfirmware mbed Tls
Trustedfirmware tf-psa-crypto
Type Values Removed Values Added
First Time appeared Arm
Arm mbed Tls
Arm tf-psa-crypto
CPEs cpe:2.3:a:arm:mbed_tls:*:*:*:*:*:*:*:*
cpe:2.3:a:arm:tf-psa-crypto:*:*:*:*:*:*:*:*
Vendors & Products Arm
Arm mbed Tls
Arm tf-psa-crypto
Type Values Removed Values Added
First Time appeared Mbed-tls
Mbed-tls mbedtls
Mbed-tls tf-psa-crypto
Vendors & Products Mbed-tls
Mbed-tls mbedtls
Mbed-tls tf-psa-crypto
Type Values Removed Values Added
Title mbedtls: Mbed TLS and TF-PSA-Crypto: Arbitrary code execution due to buffer overflow in FFDH key export
References
Metrics threat_severity

None

threat_severity

Critical

Type Values Removed Values Added
Description An issue was discovered in Mbed TLS through 3.6.5 and TF-PSA-Crypto 1.0.0. A buffer overflow can occur in public key export for FFDH keys.
Weaknesses CWE-120
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 1, 2026, 6:29 PM
Reserved
Mar 31, 2026, 12:00 AM
Status
Analyzed
Published
Apr 1, 2026, 6:16 PM
Modified
Jun 17, 2026, 10:39 AM
Severity
Critical
Public date
Apr 1, 2026, 12:00 AM