{"id":"CVE-2026-119116","summary":"Use-after-free in the SetClient command handler of kmstool-enclave in AWS aws-nitro-enclaves-sdk-c","details":"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.\n\n\n\nTo 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.","aliases":["GHSA-cfhm-qfw4-j7qq"],"modified":"2026-11-01T07:03:41.808621385Z","published":"2026-10-30T16:10:39.338Z","database_specific":{"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"},"references":[{"type":"ADVISORY","url":"https://aws.amazon.com/security/security-bulletins/2026-157-aws/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119116.json"},{"type":"ADVISORY","url":"https://github.com/aws/aws-nitro-enclaves-sdk-c/security/advisories/GHSA-cfhm-qfw4-j7qq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119116"},{"type":"FIX","url":"https://github.com/aws/aws-nitro-enclaves-sdk-c/releases/tag/v0.4.6"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/aws/aws-nitro-enclaves-sdk-c","events":[{"introduced":"0"},{"fixed":"f2dbc3fb1ab9b4496ff8ebc077d24e5f24265923"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"0.4.6"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_TAG","original_tag":"v0.4.6","range":[{"fixed":"f2dbc3fb1ab9b4496ff8ebc077d24e5f24265923"}]},{"range":[{"introduced":"0"},{"fixed":"0.4.6"}],"source":"DESCRIPTION"}]}}],"versions":["v0.4.5","v0.4.4","v0.4.3","v0.4.2","v0.4.1","v0.2.1","v0.4.0","v0.3.2","v0.3.1","v0.3.0","v0.2.0","v0.1.0"],"database_specific":{"vanir_signatures_modified":"2026-11-01T07:03:41Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119116.json","vanir_signatures":[{"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":{"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"},{"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"},"deprecated":false}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}