Description
A use-after-free and double-free issue in the SetClient command handler of the kmstool-enclave sample application of AWS aws-nitro-enclaves-sdk-c before 0.4.6 may allow an application that runs on the parent EC2 instance to corrupt heap memory inside a Nitro Enclave which may lead to arbitrary code execution within the enclave. To remediate this issue, users should rebuild any enclave image that includes kmstool-enclave, or code derived from it, against aws-nitro-enclaves-sdk-c 0.4.6.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L |
| Provided by | CNA |
Weaknesses
- CWE-416 — CWE-416 Use after free
- CWE-415 — CWE-415 Double free
Affected products
| Vendor | Product | Versions |
|---|---|---|
| AWS | kmstool-enclave | 0 to <0.4.6 [affected] |
References
- https://github.com/aws/aws-nitro-enclaves-sdk-c/releases/tag/v0.4.6 (release-notes patch)
- https://aws.amazon.com/security/security-bulletins/2026-157-aws/ (vendor-advisory)
- https://github.com/aws/aws-nitro-enclaves-sdk-c/security/advisories/GHSA-cfhm-qfw4-j7qq (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 31 Oct 2026 07:01 UTC.