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.
{
"cna_assigner": "AMZN",
"cwe_ids": [
"CWE-415",
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119116.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.4.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"original_tag": "v0.4.6",
"range": [
{
"fixed": "f2dbc3fb1ab9b4496ff8ebc077d24e5f24265923"
}
],
"source": "REFERENCES_TAG"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.4.6"
}
],
"source": "DESCRIPTION"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119116.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"102096534070206962609222583929733340942",
"298552257704055103847798015217021574485",
"143794949572386686039610658329353021590",
"300790288635313811695441567407984341208",
"7464757053860120040964948333132543173",
"90236794672615090749482715542017714327",
"32132845232952829164383465815430460851",
"8934144838184515540148808668227538934",
"43272098473330878488104266330933546767",
"196389791626026142154864746837184463419",
"274775006480006209457655547820303221152",
"50389628791354475439157434732733689504",
"204352952268097769073741410164565172756",
"29784770174440451285596733382139058444",
"46273232247603699537774513899294653577",
"149532721796883045445176539269199066439",
"6278457649261080883500472111527501390",
"9014481417082895057821311902406470656"
],
"threshold": 0.9
},
"id": "CVE-2026-119116-8164aff2",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/aws/aws-nitro-enclaves-sdk-c/commit/f2dbc3fb1ab9b4496ff8ebc077d24e5f24265923",
"target": {
"file": "source/rest.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "180868219307362878041073218729893967559",
"length": 3557
},
"id": "CVE-2026-119116-af1b5f8d",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/aws/aws-nitro-enclaves-sdk-c/commit/f2dbc3fb1ab9b4496ff8ebc077d24e5f24265923",
"target": {
"file": "source/rest.c",
"function": "aws_nitro_enclaves_rest_client_new"
}
}
]
"2026-11-01T07:03:41Z"