Intel

AIKIDO-2026-675639

Mbed-TLS.mbedtls is vulnerable to Observable Timing Discrepancy

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

53

CVE Score

Medium

Observable Timing Discrepancy

Are you affected? Scan for Free

TL;DR

When decrypting with block cipher modes that use padding, Mbed TLS translates internal cipher error codes into PSA error codes in a way that is not constant time. A local attacker who can request decryptions and observe timing through shared resources such as caches or the branch predictor learns whether padding was valid, forming a padding oracle. This allows partial or full recovery of plaintext encrypted with CBC-PKCS7. The fix removes the timing difference and adds a padding-aware finish function for safer error handling.

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 with a padded CBC or ECB mode through the PSA API.

Package

Mbed-TLS.mbedtls

Versions

1.0.0 - 3.6.4

Fixed in 3.6.5

Background info

Mbed-TLS.mbedtls is vulnerable to Observable Timing Discrepancy in versions 1.0.0 - 3.6.4.

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