Intel

AIKIDO-2026-223454

Mbed-TLS.mbedtls is vulnerable to Observable Timing Discrepancy

CVE-2025-49087Published Jul 29, 2026
July 29, 2026

40

CVE Score

Medium

Observable Timing Discrepancy

Are you affected? Scan for Free

TL;DR

Mbed TLS removes PKCS#7 padding after block cipher decryption by first checking that the final byte is within a valid range and returning early when it is not. This early exit creates a timing side channel that behaves as a padding oracle. An attacker with a decryption oracle and timing measurements can recover the last byte of each block, and often the full plaintext when part of it is under their control. The fix makes the padding check run in constant time.

How do I fix this?

Upgrade the Mbed-TLS.mbedtls library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application decrypts untrusted ciphertext using the PKCS#7 padding mode.

Package

Mbed-TLS.mbedtls

Versions

3.6.1 - 3.6.3

Fixed in 3.6.4

Background info

Mbed-TLS.mbedtls is vulnerable to Observable Timing Discrepancy in versions 3.6.1 - 3.6.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea