Timing Attack Affecting mbedtls package, versions [,3.6.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-MBEDTLS-13654004
  • published22 Oct 2025
  • disclosed21 Oct 2025
  • creditBeat Heeb

Introduced: 21 Oct 2025

NewCVE-2025-59438  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade mbedtls to version 3.6.5 or higher.

Overview

Affected versions of this package are vulnerable to Timing Attack via discrepancies in processing invalid padding errors in legacy API (mbedtls_cipher_crypt() and mbedtls_cipher_finish() functions) and in the PSA Crypto API (psa_cipher_decrypt() and psa_cipher_finish() functions) when handling any other padding than NONE. An attacker can infer sensitive information by measuring the time taken to process cryptographic operations.

CVSS Base Scores

version 4.0
version 3.1