{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "1.58.3"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "6d6e49b766c39c3247e7f1e015f7e090398adee4"
            },
            {
              "fixed": "4e9b5b7526db083177e81f8bafeaa4914d276a82"
            }
          ],
          "repo": "https://github.com/skalenetwork/sgxwallet",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2021-36219",
  "modified": "2026-03-13T21:56:14.403200156Z",
  "published": "2021-09-27T14:15:08.537Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/skalenetwork/sgxwallet/releases"
    },
    {
      "type": "FIX",
      "url": "https://github.com/skalenetwork/sgxwallet/commit/4e9b5b7526db083177e81f8bafeaa4914d276a82"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}