Skip to content
OpenAdvisories
Medium · 4.7 CVE-2021-36647 EUVD-2021-23243GHSA-7wwm-8prx-hpg2

Use of a Broken or Risky Cryptographic Algorithm in the function mbedtls_mpi_exp_mod() in lignum.c in Mbed TLS Mbed TLS all versions before…

Published Jan 17, 2023 · Updated Nov 3, 2025 · Assigned by mitre

Description

Use of a Broken or Risky Cryptographic Algorithm in the function mbedtls_mpi_exp_mod() in lignum.c in Mbed TLS Mbed TLS all versions before 3.0.0, 2.27.0 or 2.16.11 allows attackers with access to precise enough timing and memory access information (typically an untrusted operating system attacking a secure enclave such as SGX or the TrustZone secure world) to recover the private keys used in RSA.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mbedtls 2.16.11-0.1 —
Debian 13 mbedtls 2.16.11-0.1 —
Debian 12 mbedtls 2.16.11-0.1 —
Debian 11 mbedtls 2.16.9-0.1+deb11u1 DLA-4236-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS mbedtls No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS mbedtls No fix yet —
Ubuntu Pro 18.04 LTS mbedtls No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) fluent-bit 2.0.9-1 —
Azure Linux 2 (CBL-Mariner) hvloader 1.0.1-6 —

Advisories 1

References