CVE-2021-36219: SKALE sgxwallet - Use After Free
- Cve: CVE-2021-36219
- Name: SKALE sgxwallet - Use After Free
- Description: An issue was discovered in SKALE sgxwallet 1.58.3. The provided input for ECALL 14 triggers a branch in trustedEcdsaSign that frees a non-initialized pointer from the stack. An attacker can chain multiple enclave calls to prepare a stack that contains a valid address. This address is then freed, resulting in compromised integrity of the enclave. This was resolved after v1.58.3 and not reproducible in sgxwallet v1.77.0.
- Impact: Attackers can manipulate enclave memory, potentially leading to enclave integrity compromise or arbitrary code execution within the enclave.
- Remediation: Update to version 1.77.0 or later to address this issue.
- Vulnerability type: use_after_free
- Vulnerability impact: data_tampering, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01697
- Epss percentile: 0.77657
- Assignee: [email protected]
- Published at: 2021-09-27T14:15:08Z
- Age in days: 1884
- Modified at: 2026-06-17T03:58:32Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-36219
- 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: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-824 | Access of Uninitialized Pointer |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/skalenetwork/sgxwallet/commit/4e9b5b7526db083177e81f8bafeaa4914d276a82 | nvd | Patch, Third Party Advisory |
| https://github.com/skalenetwork/sgxwallet/releases | nvd | Release Notes, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| skale:sgxwallet | = 1.58.3 | no | nvd | /v1/products/skale/sgxwallet |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| skalenetwork/sgxwallet | commit, releases | yes | /v1/repositories/skalenetwork/sgxwallet |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts