CVE-2022-35409
Mbed TLS vulnerability analysis and mitigation

Overview

An issue was discovered in Mbed TLS before 2.28.1 and 3.x before 3.2.0 affecting DTLS servers. The vulnerability (CVE-2022-35409) was disclosed on July 11, 2022, and involves an unauthenticated attacker being able to send an invalid ClientHello message that causes a heap-based buffer over-read of up to 255 bytes (Mbed Advisory).

Technical details

The vulnerability occurs when MBEDTLSSSLDTLSCLIENTPORTREUSE is enabled and MBEDTLSSSLINCONTENTLEN is set below a certain threshold. An attacker can send a malformed ClientHello message where the declared length of the cookie extends past the end of the message. The threshold depends on the configuration: 258 bytes when using mbedtlssslcookiecheck, and potentially up to 571 bytes with a custom cookie check function (Mbed Advisory).

Impact

The vulnerability can lead to a server crash or potential information disclosure based on error responses. When exploited, an unauthenticated remote host can cause a buffer overread of up to 255 bytes on the heap in vulnerable DTLS servers (Mbed Advisory).

Mitigation and workarounds

Users are recommended to upgrade to Mbed TLS 3.2.0 or 2.28.1 depending on their current branch. Alternative workarounds include: setting a sufficiently large value of MBEDTLSSSLINCONTENTLEN above the threshold for the specific configuration, or disabling MBEDTLSSSLDTLSCLIENTPORT_REUSE (Mbed Advisory).

Additional resources


SourceThis report was generated using AI

Related Mbed TLS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-47917CRITICAL9.8
  • Mbed TLSMbed TLS
  • mbedtls
NoYesJul 20, 2025
CVE-2025-48965HIGH7.5
  • Mbed TLSMbed TLS
  • mbedtls
NoYesJul 20, 2025
CVE-2025-54764MEDIUM6.2
  • Mbed TLSMbed TLS
  • mbedtls
NoYesOct 20, 2025
CVE-2025-59438MEDIUM5.3
  • Mbed TLSMbed TLS
  • mbedtls-devel
NoYesOct 21, 2025
CVE-2025-49087LOW3.7
  • Mbed TLSMbed TLS
  • mbedtls
NoYesJul 20, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management