# CVE-2021-36647: Use of a Broken or Risky Cryptographic Algorithm in the function mbedtlsmpiexpmod() in lignum.c in Mbed TLS Mbed TLS all versions before 3.…

- Severity: Medium 4.7 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2023-01-17T00:00:00.000Z
- Modified: 2026-06-17T03:58:59.387Z
- Weaknesses: CWE-327
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- arm mbed_tls: before 2.16.11; from 2.17.0 before 2.27.0
- trustedfirmware mbed_tls: from 2.28.0 before 3.0.0

## Every score

- CISA-ADP: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://kouzili.com/Load-Step.pdf> (third-party-advisory)
- <https://github.com/ARMmbed/mbedtls/releases/> (third-party-advisory)
- <https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2021-07-1> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/06/msg00034.html>

## Sources

- CVE List: [CVE-2021-36647](https://www.cve.org/CVERecord?id=CVE-2021-36647), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2021-36647](https://nvd.nist.gov/vuln/detail/CVE-2021-36647), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-36647 · Whole record: https://cve.day/CVE-2021-36647.json · Rebuilt by cve.day 2026-11-25T22:58:08.132Z
