{"schemaVersion":4,"id":"CVE-2026-119116","aliases":[],"status":"published","duplicateOf":null,"title":"Use-after-free in the SetClient command handler of kmstool-enclave in AWS aws-nitro-enclaves-sdk-c","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.\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.","dates":{"published":"2026-10-30T16:10:39.338Z","modified":"2026-10-30T20:00:57.890Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00161,"percentile":0.05425,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00161},"history":[{"date":"2026-10-31T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00161,"percentile":0.05425}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00161,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00161,"percentile":0.05425}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-415","name":"Double Free","description":"The product calls free() twice on the same memory address.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/415.html"},{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"aws","product":"kmstool-enclave","name":"kmstool-enclave","label":"kmstool-enclave","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.4.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.4.6","endInclusive":false}}],"versionsText":"< 0.4.6","eol":null,"hubHref":"/vendor/aws/kmstool-enclave"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/aws/aws-nitro-enclaves-sdk-c/releases/tag/v0.4.6","label":"github.com/aws/aws-nitro-enclaves-sdk-c/releases/tag/v0.4.6","hostname":"github.com","tags":["Release Notes","Patch"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-157-aws/","label":"aws.amazon.com/security/security-bulletins/2026-157-aws/","hostname":"aws.amazon.com","tags":["Vendor Advisory"]},{"url":"https://github.com/aws/aws-nitro-enclaves-sdk-c/security/advisories/GHSA-cfhm-qfw4-j7qq","label":"github.com/aws/aws-nitro-enclaves-sdk-c/security/advisories/GHSA-cfhm-qfw4-j7qq","hostname":"github.com","tags":["Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-30T16:10:39.338Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-30T20:00:57.890Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.7, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,87],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00161,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-30T20:00:57.890Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-10-30T20:00:57.890Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-10-30T20:00:57.890Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-10-30T20:00:57.890Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-10-30T19:21:57.096Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00161,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T09:34:47.029Z","stale":false,"partial":false}}