Mbed TLS up to 2.16.10/2.26.x lignum.c mbedtls_mpi_exp_mod risky encryption
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 3.9 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, has been found in Mbed TLS up to 2.16.10/2.26.x. The impacted element is the function mbedtls_mpi_exp_mod of the file lignum.c. This manipulation causes risky encryption.
This vulnerability appears as CVE-2021-36647. The attack requires local access. There is no available exploit.
It is advisable to upgrade the affected component.
Details
A vulnerability classified as problematic was found in Mbed TLS up to 2.16.10/2.26.x. Affected by this vulnerability is the function mbedtls_mpi_exp_mod of the file lignum.c. The manipulation with an unknown input leads to a risky encryption vulnerability. The CWE definition for the vulnerability is CWE-327. The product uses a broken or risky cryptographic algorithm or protocol. As an impact it is known to affect confidentiality. The summary by CVE is:
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.
The weakness was presented 01/18/2023. It is possible to read the advisory at tls.mbed.org. This vulnerability is known as CVE-2021-36647 since 07/12/2021. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1600 according to MITRE ATT&CK.
The vulnerability scanner Nessus provides a plugin with the ID 240979 (Debian dla-4236 : libmbedcrypto3 - security update), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 2.16.11, 2.27.0 or 3.0.0 eliminates this vulnerability. The upgrade is hosted for download at github.com.
The vulnerability is also documented in the vulnerability database at Tenable (240979). Be aware that VulDB is the high quality source for vulnerability data.
Product
Vendor
Name
Version
- 2.0
- 2.1
- 2.2
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
- 2.8
- 2.9
- 2.10
- 2.11
- 2.12
- 2.13
- 2.14
- 2.15
- 2.16
- 2.16.0
- 2.16.1
- 2.16.2
- 2.16.3
- 2.16.4
- 2.16.5
- 2.16.6
- 2.16.7
- 2.16.8
- 2.16.9
- 2.16.10
- 2.17
- 2.18
- 2.19
- 2.20
- 2.21
- 2.22
- 2.23
- 2.24
- 2.25
- 2.26
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.0VulDB Meta Temp Score: 3.9
VulDB Base Score: 2.5
VulDB Temp Score: 2.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 4.7
NVD Vector: 🔍
ADP CISA Base Score: 4.7
ADP CISA Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Risky encryptionCWE: CWE-327 / CWE-310
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: No
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 240979
Nessus Name: Debian dla-4236 : libmbedcrypto3 - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: TLS 2.16.11/2.27.0/3.0.0
Timeline
07/12/2021 🔍01/18/2023 🔍
01/18/2023 🔍
06/06/2026 🔍
Sources
Advisory: tls.mbed.orgStatus: Confirmed
CVE: CVE-2021-36647 (🔍)
GCVE (CVE): GCVE-0-2021-36647
GCVE (VulDB): GCVE-100-218863
Entry
Created: 01/18/2023 08:06Updated: 06/06/2026 01:46
Changes: 01/18/2023 08:06 (42), 02/14/2023 19:29 (11), 07/01/2025 04:44 (17), 11/05/2025 15:52 (1), 06/06/2026 01:46 (11)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.