Request an audit

// CVE · Published · NVD

CVE-2026-348779.8 · Critical · CVSS 3.1

Mbed TLS serialized session/context memory safety.

Insufficient protection of serialized SSL session/context data can lead to memory-safety issues when restoring tampered or corrupted state. Credited jointly with Haruto Kimura (Stella).

Published
Vendor
Product
Mbed TLS
Affected
Mbed TLS 2.19.0 to 3.6.5, Mbed TLS 4.0.0
Fixed in
Mbed TLS 3.6.6 and 4.1.0 (documentation and integrity requirements)
Research area
Credit
Haruto Kimura (Stella) and Eva Crystal (0xiviel)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Summary

Mbed TLS can serialize a TLS session or a whole SSL context to a buffer and restore it later. The library treated that buffer as trusted: a restored structure that had been modified or corrupted was processed without the consistency checks that protect the same fields on the wire, so deserialization could read and write out of bounds.

Impact

Anyone who can modify serialized session or context data can corrupt memory in the process that restores it, up to arbitrary code execution. NVD scores it 9.8 with CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The Mbed TLS advisory keeps the API and makes the requirement explicit: serialized data has to be stored where an attacker cannot reach it, or protected with authenticated encryption and validated before it is restored.

Affected and fixed

  • Affected: Mbed TLS 2.19.0 to 3.6.5 and 4.0.0, wherever serialized data can be reached by an attacker
  • Resolution: documentation and integrity requirements clarified in Mbed TLS 3.6.6 and 4.1.0; no API change

Timeline

  • 31 Mar 2026: Mbed TLS security advisory published
  • 2 Apr 2026: CVE-2026-34877 published on NVD

Credit

Reported by Haruto Kimura (Stella) and Eva Crystal (0xiviel), XSource Security.

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