Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-36219
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:19 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-36219
Complete source record
{
"id": "04465ab53aeebd77b0f6cb0938fa8056460f348bdd82f00c92be8d7a79204592",
"url": "https://osv.dev/vulnerability/CVE-2021-36219",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-36219",
"summary": "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.",
"evidence": "osv:CVE-2021-36219",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-36219",
"aliases": [
"CVE-2021-36219"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/skalenetwork/sgxwallet",
"type": "GIT",
"events": [
{
"introduced": "6d6e49b766c39c3247e7f1e015f7e090398adee4"
},
{
"last_affected": "6d6e49b766c39c3247e7f1e015f7e090398adee4"
},
{
"fixed": "4e9b5b7526db083177e81f8bafeaa4914d276a82"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:skale:sgxwallet:1.58.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.58.3"
},
{
"last_affected": "1.58.3"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "4e9b5b7526db083177e81f8bafeaa4914d276a82"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.58.3",
"build_base_1_58_3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36219.json"
}
}
],
"modified": "2026-10-20T10:53:52.377631240Z",
"provider": "osv",
"references": [
"https://github.com/skalenetwork/sgxwallet/releases",
"https://github.com/skalenetwork/sgxwallet/commit/4e9b5b7526db083177e81f8bafeaa4914d276a82"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-36219",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384713,
"published_at": "2021-09-27T14:15:08.537+00:00"
}