CVE-2025-49087 Information disclosure in mbedtls
An attacker can recover plaintext via timing side-channel attacks in Mbed TLS when using PKCS#7 padding mode.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-49087?
CVE-2025-49087 is a medium-severity vulnerability in mbedtls, published on 20 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In Mbed TLS 3.6.1 through 3.6.3 before 3.6.4, a timing discrepancy in block cipher padding removal allows an attacker to recover the plaintext when PKCS#7 padding mode is used.
Weakness: CWE-385
Which versions are affected by CVE-2025-49087?
It affects 1 product.
Products include Trustedfirmware Mbed Tls.
How do I fix CVE-2025-49087?
Upgrade to a fixed version.
Is CVE-2025-49087 being exploited?
There is no known exploitation of CVE-2025-49087 in the wild and no public exploit code.
Other vulnerabilities in mbedtls
Sources
Also known as ALPINE-CVE-2025-49087, DEBIAN-CVE-2025-49087, GHSA-fmjv-q9m9-j657, UBUNTU-CVE-2025-49087.