Compiler Optimization Removal or Modification of Security-critical Code Affecting mbedtls3 package, versions <3.6.4-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.21% (11th 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-ALPINE324-MBEDTLS3-17301480
  • published11 Jun 2026
  • disclosed4 Jul 2025

Introduced: 4 Jul 2025

CVE-2025-52496  (opens in a new tab)
CWE-733  (opens in a new tab)

How to fix?

Upgrade Alpine:3.24 mbedtls3 to version 3.6.4-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mbedtls3 package and not the mbedtls3 package as distributed by Alpine. See How to fix? for Alpine:3.24 relevant fixed versions and status.

Mbed TLS before 3.6.4 has a race condition in AESNI detection if certain compiler optimizations occur. An attacker may be able to extract an AES key from a multithreaded program, or perform a GCM forgery.

CVSS Base Scores

version 3.1