{"id":"GHSA-cfhm-qfw4-j7qq","kind":"vulnerability","aliases":["GHSA-cfhm-qfw4-j7qq"],"related":[],"title":"CVE-2026-119116 and CVE-2026-119148 - Issues in AWS Nitro Enclaves SDK for C","description":"CVE-2026-119116 and CVE-2026-119148 - Issues in AWS Nitro Enclaves SDK for C\n\n### CVE-2026-119116 and CVE-2026-119148 - Issues in AWS Nitro Enclaves SDK for C\n\nBulletin ID: 2026-157-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 10/30/2026 09:00 AM PDT\n\nDescription:\n\nThe AWS Nitro Enclaves SDK for C (aws-nitro-enclaves-sdk-c) is a library and set of example tools, including kmstool-enclave, for building applications that run inside AWS Nitro Enclaves and call AWS KMS using cryptographic attestation.\n\nWe identified CVE-2026-119116, a use-after-free in the SetClient command handler of the kmstool-enclave example application, where an application that executes on the parent EC2 instance could send crafted messages over vsock to corrupt heap memory inside the enclave and execute arbitrary code within it. Only enclave images that include kmstool-enclave, or code derived from it, are affected.\n\nWe also identified CVE-2026-119148, an input validation issue in the SDK library where the AWS KMS server name is built from a caller-supplied region string. A third party could supply a crafted region to impersonate KMS to the enclave and inject forged responses, such as actor-chosen key material.\n\nImpacted versions: aws-nitro-enclaves-sdk-c <= v0.4.5 (CVE-2026-119116 affects kmstool-enclave only; CVE-2026-119148 affects the library)\n\nResolution:\n\nBoth issues have been addressed in aws-nitro-enclaves-sdk-c version v0.4.6. Customers who build enclave images which consume the aws-nitro-enclaves-sdk-c library should upgrade it to v0.4.6 and rebuild their enclave images.\n\nWorkarounds:\n\nThere are no workarounds. Upgrading is required.\n\nReferences:\n\n- CVE-2026-119116\n- CVE-2026-119148\n- GHSA-f6f6-6f88-r57j\n- GHSA-cfhm-qfw4-j7qq\n\nAcknowledgement:\n\nWe would like to thank Trail of Bits for reporting CVE-2026-119116 and collaborating on this issue through the coordinated vulnerability disclosure process.\n\n Please email aws-security@amazon.com with any security questions or concerns.","summary":"The AWS Nitro Enclaves SDK for C has two issues: a use-after-free in the kmstool-enclave example lets a process on the parent EC2 instance send crafted vsock messages to run code inside the enclave, and a region string used to build the KMS server name lets a third party impersonate KMS and inject forged responses, including chosen key material.","severity":"high","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["aws","c","enclave-images","kms","lab-disclosure","nitro-enclaves","vendor"],"not_affected_if":["no-kmstool-enclave","no-nitro-enclaves"],"how_to_check":"- Check the version of `aws-nitro-enclaves-sdk-c` your enclave images build against; versions `<= v0.4.5` are affected.\n- Check whether enclave images include `kmstool-enclave` or code derived from it; only those images are affected for CVE-2026-119116.","fix":"- `aws-nitro-enclaves-sdk-c` `v0.4.6`; rebuild enclave images after upgrading.","status":"open","published_at":"2026-10-30T00:00:00+00:00","first_seen_at":"2026-10-30T16:50:06+00:00","triaged_at":"2026-10-30T16:50:30+00:00","updated_at":"2026-10-30T16:50:30+00:00","category":"vendor","confidence":0.8,"triage":{"at":"2026-10-30T16:50:30Z","model":"claude-haiku-5-5","output":{"fix":"- `aws-nitro-enclaves-sdk-c` `v0.4.6`; rebuild enclave images after upgrading.","reach":"local","title":"AWS Nitro Enclaves SDK for C: two flaws allow code execution in enclaves","impact":"high","summary":"The AWS Nitro Enclaves SDK for C has two issues: a use-after-free in the kmstool-enclave example lets a process on the parent EC2 instance send crafted vsock messages to run code inside the enclave, and a region string used to build the KMS server name lets a third party impersonate KMS and inject forged responses, including chosen key material.","audience":"businesses","category":"vendor","nicknames":[],"who_cares":["aws","nitro-enclaves","kms","c","enclave-images"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"code runs inside the enclave; KMS responses forged, key material chosen","analyst_note":"","how_to_check":"- Check the version of `aws-nitro-enclaves-sdk-c` your enclave images build against; versions `<= v0.4.5` are affected.\n- Check whether enclave images include `kmstool-enclave` or code derived from it; only those images are affected for CVE-2026-119116.","plain_action":"","needs_analyst":false,"not_affected_if":["no-nitro-enclaves","no-kmstool-enclave"],"who_is_affected":"Teams building applications that run inside AWS Nitro Enclaves and call AWS KMS through the aws-nitro-enclaves-sdk-c library or its kmstool-enclave example. The vsock flaw matters only for enclave images that include kmstool-enclave or code derived from it; the region-based KMS impersonation flaw affects the library itself. Teams not using Nitro Enclaves with this SDK can skip it.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000827,"input_tokens":4918,"output_tokens":671,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-119116':3A,105C,120C,198C,325C,388C,415C '-119148':7A,109C,124C,265C,333C,391C '-157':136C '-2026':2A,6A,104C,108C,119C,123C,197C,264C,324C,332C,387C,390C,414C '00':149C '09':148C '10/30/2026':147C '2026':135C '6f88':395C 'acknowledg':402C 'actor':310C 'actor-chosen':309C 'address':342C 'affect':259C,326C,334C 'also':261C 'applic':180C,215C,218C 'arbitrari':241C 'attent':144C 'attest':193C 'aw':10A,26B,40B,112C,127C,137C,139C,154C,161C,184C,189C,276C,317C,345C,361C 'aws-nitro-enclaves-sdk-c':160C,316C,344C,360C 'aws-security@amazon.com':429C 'bit':410C 'build':84B,179C,354C 'built':281C 'bulletin':133C 'c':15A,27B,45B,117C,132C,159C,165C,321C,349C,365C 'call':188C 'caller':285C 'caller-suppli':284C 'cfhm':18A,23A,399C 'chosen':100B,311C 'code':74B,242C,254C 'collabor':417C 'command':207C 'concern':435C 'consum':358C 'content':140C 'coordin':423C 'corrupt':233C 'could':226C,292C 'craft':69B,228C,295C 'cryptograph':192C 'custom':352C 'cve':1A,5A,103C,107C,118C,122C,196C,263C,323C,331C,386C,389C,413C 'date':146C 'deriv':255C 'descript':152C 'disclosur':34B,425C 'ec2':66B,224C 'email':428C 'enclav':12A,29B,37B,42B,58B,77B,114C,129C,156C,163C,177C,186C,213C,238C,246C,252C,302C,319C,329C,347C,355C,363C,375C 'enclave-imag':28B 'exampl':59B,172C,214C 'execut':220C,240C 'f6f6':394C 'forg':97B,305C 'free':53B,203C 'ghsa':17A,22A,393C,398C 'ghsa-cfhm-qfw4-j7qq':16A,21A,397C 'ghsa-f6f6-6f88-r57j':392C 'handler':208C 'heap':234C 'id':134C 'identifi':195C,262C 'imag':30B,247C,356C,376C 'impact':314C 'imperson':93B,298C 'import':142C 'includ':99B,174C,249C 'inject':96B,304C 'input':267C 'insid':75B,183C,236C 'instanc':67B,225C 'issu':8A,48B,110C,125C,269C,339C,420C 'j7qq':20A,25A,401C 'key':101B,312C 'kms':31B,86B,94B,190C,277C,299C 'kmstool':57B,176C,212C,251C,328C 'kmstool-enclav':56B,175C,211C,250C,327C 'lab':33B 'lab-disclosur':32B 'let':60B,89B 'librari':168C,273C,336C,366C 'like':405C 'materi':102B,313C 'memori':235C 'messag':71B,229C 'name':88B,279C 'nitro':11A,36B,41B,113C,128C,155C,162C,185C,318C,346C,362C 'nitro-enclav':35B 'parent':65B,223C 'parti':92B,291C 'pdt':151C 'pleas':427C 'process':62B,426C 'public':145C 'qfw4':19A,24A,400C 'question':433C 'r57j':396C 'rebuild':373C 'refer':385C 'region':80B,287C,296C 'report':412C 'requir':143C,384C 'resolut':337C 'respons':98B,306C 'run':73B,182C 'scope':138C 'sdk':13A,43B,115C,130C,157C,164C,272C,320C,348C,364C 'secur':432C 'send':68B,227C 'server':87B,278C 'set':170C 'setclient':206C 'string':81B,288C 'suppli':286C,293C 'thank':407C 'third':91B,290C 'tool':173C 'trail':408C 'two':47B 'type':141C 'upgrad':368C,382C 'use':51B,82B,191C,201C 'use-after-fre':50B,200C 'v0.4.5':322C 'v0.4.6':351C,371C 'valid':268C 'vendor':38B 'version':315C,350C 'vsock':70B,231C 'vulner':424C 'within':243C 'workaround':377C,381C 'would':404C","nicknames":[],"mitigations":[],"who_affected":"Teams building applications that run inside AWS Nitro Enclaves and call AWS KMS through the aws-nitro-enclaves-sdk-c library or its kmstool-enclave example. The vsock flaw matters only for enclave images that include kmstool-enclave or code derived from it; the region-based KMS impersonation flaw affects the library itself. Teams not using Nitro Enclaves with this SDK can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"first_public_at":"2026-10-30T00:00:00+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"lab","external_id":"https://aws.amazon.com/security/security-bulletins/rss/2026-157-aws/#GHSA-cfhm-qfw4-j7qq","url":"https://aws.amazon.com/security/security-bulletins/rss/2026-157-aws/","severity":null,"published_at":"2026-10-30T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-30T16:50:06+00:00","fetched_at":"2026-10-30T16:50:06+00:00","note":"AWS: CVE-2026-119116 and CVE-2026-119148 - Issues in AWS Nitro Enclaves SDK for C"}],"documents":[{"id":24698,"url":"https://aws.amazon.com/security/security-bulletins/rss/2026-157-aws/","title":"AWS: CVE-2026-119116 and CVE-2026-119148 - Issues in AWS Nitro Enclaves SDK for C","kind":"advisory","source":"lab","publisher":"research","text":"CVE-2026-119116 and CVE-2026-119148 - Issues in AWS Nitro Enclaves SDK for C\n\n### CVE-2026-119116 and CVE-2026-119148 - Issues in AWS Nitro Enclaves SDK for C\n\nBulletin ID: 2026-157-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 10/30/2026 09:00 AM PDT\n\nDescription:\n\nThe AWS Nitro Enclaves SDK for C (aws-nitro-enclaves-sdk-c) is a library and set of example tools, including kmstool-enclave, for building applications that run inside AWS Nitro Enclaves and call AWS KMS using cryptographic attestation.\n\nWe identified CVE-2026-119116, a use-after-free in the SetClient command handler of the kmstool-enclave example application, where an application that executes on the parent EC2 instance could send crafted messages over vsock to corrupt heap memory inside the enclave and execute arbitrary code within it. Only enclave images that include kmstool-enclave, or code derived from it, are affected.\n\nWe also identified CVE-2026-119148, an input validation issue in the SDK library where the AWS KMS server name is built from a caller-supplied region string. A third party could supply a crafted region to impersonate KMS to the enclave and inject forged responses, such as actor-chosen key material.\n\nImpacted versions: aws-nitro-enclaves-sdk-c <= v0.4.5 (CVE-2026-119116 affects kmstool-enclave only; CVE-2026-119148 affects the library)\n\nResolution:\n\nBoth issues have been addressed in aws-nitro-enclaves-sdk-c version v0.4.6. Customers who build enclave images which consume the aws-nitro-enclaves-sdk-c library should upgrade it to v0.4.6 and rebuild their enclave images.\n\nWorkarounds:\n\nThere are no workarounds. Upgrading is required.\n\nReferences:\n\n- CVE-2026-119116\n- CVE-2026-119148\n- GHSA-f6f6-6f88-r57j\n- GHSA-cfhm-qfw4-j7qq\n\nAcknowledgement:\n\nWe would like to thank Trail of Bits for reporting CVE-2026-119116 and collaborating on this issue through the coordinated vulnerability disclosure process.\n\n Please email aws-security@amazon.com with any security questions or concerns.","published_at":"2026-10-30T00:00:00+00:00","relation":"advisory","confidence":null,"note":null}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}