CVE-2026-119116

Use-after-free in the SetClient command handler of kmstool-enclave in AWS aws-nitro-enclaves-sdk-c

Published Oct 30, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A use‑after‑free followed by a double‑free occurs in the SetClient command handler of the kmstool‑enclave sample application for AWS Nitro Enclaves SDK‑C. When an attacker can invoke this command from the parent EC2 instance, the bug corrupts heap memory inside the enclave, giving the attacker the ability to execute arbitrary code within the isolated enclave environment. This flaw represents a classic heap corruption problem that can subvert enclave confidentiality, integrity, and availability.

Affected Systems

The vulnerability affects the kmstool‑enclave sample application of the AWS Nitro Enclaves SDK‑C description. All releases of kmstool‑enclave that were distributed with aws‑nitro‑enclaves‑sdk‑c prior to version 0.4.6 are affected. Any enclave image that includes kmstool‑enclave or code derived from it is at risk if built against those older SDK versions.

Risk and Exploitability

The CVSS score of 8.7 classifies this as a high‑severity flaw. EPSS information is not available, and the vulnerability is not currently listed in the CISA KEV catalog. Attackers would need permission to call the SetClient command from the parent host, suggesting the attack vector is from the parent EC2 instance to the enclave via the established API. If successful, memory corruption can lead to arbitrary code execution inside the enclave.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Rebuild any enclave image that integrates kmstool‑enclave using aws‑nitro‑enclaves‑sdk‑c version 0.4.6 or later.
  • Update the project’s dependency on aws‑nitro‑enclaves‑sdk‑c to the fixed version 0.4.6 and recompile the application.
  • If immediate rebuild is impossible, restrict or disable the SetClient command on the parent host so that the vulnerable code path cannot be reached from untrusted callers.

Generated by OpenCVE AI on October 30, 2026 at 17:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Use-after-free in the SetClient command handler of kmstool-enclave in AWS aws-nitro-enclaves-sdk-c
First Time appeared Aws
Aws kmstool-enclave
Weaknesses CWE-415
CWE-416
CPEs cpe:2.3:a:aws:kmstool-enclave:*:*:*:*:*:*:*:*
Vendors & Products Aws
Aws kmstool-enclave
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
AMZN
Published
Updated
Oct 30, 2026, 8:00 PM
Reserved
Oct 29, 2026, 2:19 PM
Status
Awaiting Analysis
Published
Oct 30, 2026, 5:17 PM
Modified
Oct 30, 2026, 8:17 PM