CVE-2025-27810
Medium · 5.4CVSS
5.4
EPSS
0.3%
Published
Mar 25, 2025
CISA due date
—
Cloudanix analysis
A bug in a common encryption library can let attackers reuse old login data to slip into systems without proper credentials when certain rare errors occur.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Privilege Gain
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Under failed memory allocation or hardware errors, Mbed TLS reuses uninitialized stack memory when constructing the TLS Finished handshake message, allowing an attacker to influence or replay authentication material.
Why it matters to the business
Organizations using affected TLS libraries face elevated risk of authentication bypass in encrypted sessions; the issue affects widely embedded cryptographic components and downstream packages, requiring prioritized upgrades despite low observed exploitation rates.
How an attack unfolds
An attacker triggers memory allocation failures or hardware faults during a TLS handshake, causing the library to emit a Finished message containing residual stack data; the attacker then captures and replays this message to bypass authentication checks in subsequent sessions.
How to fix it
Upgrade Mbed TLS to 2.28.10 or 3.6.3 (commit 2fc8413bfcb51354c8e679141b17b3f1a5942561) or later; upgrade PaddlePaddle to 2.6.0 or later. Verify the update resolves the uninitialized memory path in Finished message construction.
How to confirm the fix worked
Confirm the installed library version meets or exceeds the fixed releases; run regression tests that simulate allocation failures during handshakes and verify the Finished message contains only properly initialized data.
Typical attack path
- Identify a target service using vulnerable Mbed TLS during TLS negotiation
- Force memory pressure or hardware faults on the target to induce allocation failures
- Capture the resulting TLS Finished message containing uninitialized data
- Replay the captured message to authenticate without valid credentials
How to detect it
Review TLS handshake logs for Finished messages sent immediately after allocation-related errors; correlate with replayed session identifiers or unexpected successful authentications following handshake failures.
What your security team should do
- Immediately inventory all uses of Mbed TLS and PaddlePaddle and schedule upgrades to the listed fixed versions
- Prioritize patching in any externally facing TLS endpoints given the authentication-bypass potential
- Add memory-allocation-failure simulation to CI test suites for cryptographic libraries
The record
Mbed TLS before 2.28.10 and 3.x before 3.6.3, in some cases of failed memory allocation or hardware errors, uses uninitialized stack memory to compose the TLS Finished message, potentially leading to authentication bypasses such as replays.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.18 | mbedtls | 0 | 2.28.10-r0 |
| Alpine:v3.19 | mbedtls | 0 | 2.28.10-r0 |
| Alpine:v3.20 | mbedtls | 0 | 3.6.3-r0 |
| Alpine:v3.21 | mbedtls | 0 | 3.6.3-r0 |
| Alpine:v3.22 | mbedtls | 0 | 3.6.3-r0 |
| Debian:11 | mbedtls | 0 | No fix |
| Debian:12 | mbedtls | 0 | No fix |
| Debian:13 | mbedtls | 0 | No fix |
| Debian:14 | mbedtls | 0 | 3.6.3-1 |
| Julia | MbedTLS_jll | 0 | 2.28.10+0 |
| openSUSE:Leap 16.0 | mbedtls | 0 | 3.6.6-bp160.1.1 |
| openSUSE:Leap 16.0 | mbedtls-2 | 0 | 2.28.10-bp160.1.1 |
| openSUSE:Tumbleweed | mbedtls-2 | 0 | 2.28.10-1.1 |
Related vulnerabilities
- CVE-2025-27809 Mbed TLS before 2.28.10 and 3.x before 3.6.3, on the client side, accepts servers that… Also affects mbedtls
- CVE-2024-45157 An issue was discovered in Mbed TLS before 2.28.9 and 3.x before 3.6.1, in which the… Also affects mbedtls
- CVE-2024-28960 An issue was discovered in Mbed TLS 2.18.0 through 2.28.x before 2.28.8 and 3.x before… Also affects mbedtls
- CVE-2024-23775 Integer Overflow vulnerability in Mbed TLS 2.x before 2.28.7 and 3.x before 3.5.2, allows… Also affects mbedtls
- CVE-2024-23170 An issue was discovered in Mbed TLS 2.x before 2.28.7 and 3.x before 3.5.2. Also affects mbedtls
- CVE-2023-43615 Mbed TLS 2.x before 2.28.5 and 3.x before 3.5.0 has a Buffer Overflow. Also affects mbedtls
- CVE-2022-35409 An issue was discovered in Mbed TLS before 2.28.1 and 3.x before 3.2.0. Also affects mbedtls
- CVE-2021-44732 Mbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as… Also affects mbedtls