CVE-2021-36647: Mbed TLS - Weak Cryptography
- Cve: CVE-2021-36647
- Name: Mbed TLS - Weak Cryptography
- 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.
- Impact: Attackers can recover RSA private keys, compromising the security of encrypted communications.
- Remediation: Update to the latest version of Mbed TLS (3.0.0 or later).
- Vulnerability type: weak_cryptography
- Vulnerability impact: information_disclosure
- Requirements: Attacker needs precise timing and memory access information
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.7
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00172
- Epss percentile: 0.06554
- Assignee: [email protected]
- Published at: 2023-01-17T21:15:10Z
- Age in days: 1407
- Modified at: 2026-06-17T03:58:59Z
- Patch available: yes
- References total: 4
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-36647
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-327 | Use of a Broken or Risky Cryptographic Algorithm |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2021-07-1 | Vendor Advisory |
| https://github.com/ARMmbed/mbedtls/releases/ | Third Party Advisory |
| https://kouzili.com/Load-Step.pdf | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/06/msg00034.html |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| arm:mbed_tls | >= 2.17.0, < 2.27.0; < 2.16.11 | no | nvd | /v1/products/arm/mbed_tls |
| trustedfirmware:mbed_tls | >= 2.28.0, < 3.0.0 | no | nvd | /v1/products/trustedfirmware/mbed_tls |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| armmbed/mbedtls | releases | yes | /v1/repositories/armmbed/mbedtls |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts