Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-28755 Overview
CVE-2024-28755 affects Mbed TLS versions 3.5.x prior to 3.6.0. The flaw involves the mbedtls_ssl_session_reset() API, which fails to restore the configured maximum TLS version when resetting an SSL context. An attacker exploiting this behavior can prevent an Mbed TLS server from establishing TLS 1.3 connections. The result is either a denial of service or a forced protocol downgrade from TLS 1.3 to TLS 1.2. The weakness is classified under CWE-326: Inadequate Encryption Strength.
Critical Impact
Remote network attackers can force TLS version downgrades or deny TLS 1.3 connectivity against Mbed TLS servers without authentication or user interaction.
Affected Products
- Trusted Firmware Mbed TLS 3.5.0
- Trusted Firmware Mbed TLS 3.5.1
- Trusted Firmware Mbed TLS 3.5.2 (all 3.5.x releases prior to 3.6.0)
Discovery Timeline
- 2024-04-03 - CVE-2024-28755 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-28755
Vulnerability Analysis
Mbed TLS is a widely deployed cryptographic library used in embedded devices, IoT firmware, and TLS endpoints. The mbedtls_ssl_session_reset() function reinitializes an SSL context so it can be reused for a new connection without reallocating resources.
In versions 3.5.x before 3.6.0, this reset path does not restore the maximum negotiable TLS version to the value defined by the server's configuration. After a reset triggered by a crafted connection sequence, the context retains a lowered maximum version. Subsequent handshake attempts cannot negotiate TLS 1.3, even when both peers support it.
The practical consequence is a protocol downgrade. Clients capable of TLS 1.3 are forced to negotiate TLS 1.2 or receive handshake failures. This weakens the confidentiality and forward-secrecy guarantees that TLS 1.3 provides over TLS 1.2.
Root Cause
The root cause is incomplete state restoration in the session reset routine. Internal fields tracking the negotiated and maximum allowed TLS versions are modified during handshake processing but are not reverted when mbedtls_ssl_session_reset() executes. This produces persistent, cross-connection state leakage inside a reused SSL context.
Attack Vector
An attacker initiates one or more connections to an Mbed TLS server that triggers the condition causing the maximum TLS version to be lowered inside the server's reusable context. After the reset, every subsequent client is denied TLS 1.3 negotiation. The attacker needs only network reachability to the server and no credentials or user interaction.
No verified public proof-of-concept code is available for CVE-2024-28755. Refer to the Mbed TLS Security Advisories for the maintainer's technical description.
Detection Methods for CVE-2024-28755
Indicators of Compromise
- Mbed TLS servers configured to support TLS 1.3 that unexpectedly negotiate only TLS 1.2 across all subsequent client sessions.
- Repeated handshake failures from TLS 1.3-only clients against a server that previously supported TLS 1.3.
- Logs from reverse proxies or load balancers showing a sudden shift in negotiated protocol version from a specific backend.
Detection Strategies
- Inventory all applications and firmware that embed Mbed TLS 3.5.x and verify the compiled library version against the vulnerable range.
- Perform active TLS scans against exposed endpoints using tools such as testssl.sh or nmap --script ssl-enum-ciphers to confirm the server's advertised maximum TLS version.
- Compare negotiated TLS versions before and after sustained traffic to detect behavioral drift consistent with the reset-state defect.
Monitoring Recommendations
- Alert on sustained absence of TLS 1.3 handshakes against services that previously accepted them.
- Capture TLS handshake metadata through network sensors and forward to a centralized analytics platform for version-tracking over time.
- Monitor vendor firmware feeds for devices that bundle Mbed TLS 3.5.x and track patch availability.
How to Mitigate CVE-2024-28755
Immediate Actions Required
- Upgrade all Mbed TLS deployments from the 3.5.x branch to version 3.6.0 or later.
- Rebuild and redistribute any statically linked applications, embedded firmware, and container images that bundle the vulnerable library.
- Audit server configurations to confirm TLS 1.3 remains the configured maximum version after deployment of the patched library.
Patch Information
The issue is resolved in Mbed TLS v3.6.0. This release restores the configured maximum TLS version during session reset. Review the official Mbed TLS Security Advisories for backport guidance and additional fixes bundled with the release.
Workarounds
- Where immediate patching is not possible, allocate a fresh SSL context per connection instead of reusing a context through mbedtls_ssl_session_reset().
- Enforce TLS 1.3-only policies at an upstream reverse proxy or load balancer that is not based on vulnerable Mbed TLS versions.
- Restrict server exposure to trusted network segments until the patched library is deployed.
# Verify installed Mbed TLS version on Linux hosts
strings /usr/lib/libmbedtls.so* | grep -i 'mbed tls'
# Build Mbed TLS 3.6.0 from source
git clone --branch v3.6.0 https://github.com/Mbed-TLS/mbedtls.git
cd mbedtls
mkdir build && cd build
cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On ..
make && sudo make install
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

