{"id":"GHSA-25hh-xvj4-2cqv","kind":"vulnerability","aliases":["GHSA-25hh-xvj4-2cqv"],"related":[],"title":"CVE-2026-115418 - SQL injection in the database-query custom resource handlers in Amazon Web Services (AWS)","description":"CVE-2026-115418 - SQL injection in the database-query custom resource handlers in Amazon Web Services (AWS)\n\n### CVE-2026-115418 - SQL injection in the database-query custom resource handlers in Amazon Web Services (AWS)\n\nBulletin ID: 2026-151-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 10/26/2026 09:30 AM PDT\n\nDescription:\n\nThe AWS Cloud Development Kit (CDK) @aws-cdk/aws-redshift-alpha module provides experimental constructs that manage Amazon Redshift users, tables and privileges. We identified CVE-2026-115418, an issue where crafted user names, comments or passwords set in these constructs could change the SQL that runs with Amazon Redshift superuser privileges at deployment, including granting access to all cluster users. Exploiting the issue requires the ability to influence the CDK application's construct property values.\n\nImpacted versions: <2.274.0-alpha.0\n\nResolution:\n\nThis issue has been addressed in @aws-cdk/aws-redshift-alpha version 2.274.0. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. After upgrading, review existing table grants to PUBLIC.\n\nWorkarounds:\n\nUse only trusted, developer-authored values for user names, comments and passwords in these constructs, and review existing table grants to PUBLIC.\n\nReferences:\n\n- CVE-2026-115418\n- GHSA-25hh-xvj4-2cqv\n- https://www.npmjs.com/package/@aws-cdk/aws-redshift-alpha\n\nAcknowledgement:\n\nWe would like to thank Joseph Semaan for 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 experimental @aws-cdk/aws-redshift-alpha constructs build SQL for Redshift users, tables and privileges from user names, comments and passwords without escaping. Crafted values can change the SQL that runs with Redshift superuser privileges during deployment, including granting access to all cluster users.","severity":"high","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["aws","aws-cdk","infrastructure-as-code","lab-disclosure","package","redshift"],"not_affected_if":["alpha-module-unused","developer-authored-values-only"],"how_to_check":"- Check the installed version with `npm ls @aws-cdk/aws-redshift-alpha`\n- Look for uses of the Redshift user, table or privilege constructs from that package in the CDK application","fix":"- Upgrade `@aws-cdk/aws-redshift-alpha` to `2.274.0` or later\n- After upgrading, review existing table grants to PUBLIC","status":"open","published_at":"2026-10-26T00:00:00+00:00","first_seen_at":"2026-10-26T17:08:20+00:00","triaged_at":"2026-10-26T17:10:09+00:00","updated_at":"2026-10-26T17:10:09+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-26T17:10:09Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade `@aws-cdk/aws-redshift-alpha` to `2.274.0` or later\n- After upgrading, review existing table grants to PUBLIC","reach":"unknown","title":"AWS CDK Redshift alpha: SQL injection grants superuser actions at deployment","impact":"high","summary":"The experimental @aws-cdk/aws-redshift-alpha constructs build SQL for Redshift users, tables and privileges from user names, comments and passwords without escaping. Crafted values can change the SQL that runs with Redshift superuser privileges during deployment, including granting access to all cluster users.","category":"package","nicknames":[],"who_cares":["aws-cdk","redshift","infrastructure-as-code","aws"],"confidence":0.7,"needs_auth":"unknown","worst_case":"SQL runs as Redshift superuser, granting access to all cluster users","analyst_note":"","how_to_check":"- Check the installed version with `npm ls @aws-cdk/aws-redshift-alpha`\n- Look for uses of the Redshift user, table or privilege constructs from that package in the CDK application","needs_analyst":false,"not_affected_if":["alpha-module-unused","developer-authored-values-only"],"who_is_affected":"Teams whose CDK application uses the experimental @aws-cdk/aws-redshift-alpha constructs for Redshift users, tables or privileges, below version 2.274.0. Exposure depends on whether values such as user names, comments or passwords come from outside the developer's control. Teams that only write these values themselves and do not use the alpha module can skip it.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000688,"input_tokens":3928,"output_tokens":590,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-115418':3A,88C,106C,168C,290C '-151':125C '-2026':2A,87C,105C,167C,289C '/aws-redshift-alpha':47B,151C,231C '/package/@aws-cdk/aws-redshift-alpha':298C '09':137C '10/26/2026':136C '2.274.0':219C,233C '2026':124C '25hh':21A,26A,293C '2cqv':23A,28A,295C '30':138C 'abil':207C 'access':81B,197C 'acknowledg':299C 'address':226C 'alpha.0':220C 'amazon':15A,100C,118C,158C,189C 'applic':212C 'attent':133C 'author':269C 'aw':18A,29B,31B,45B,103C,121C,126C,128C,143C,149C,229C 'aws-cdk':30B,44B,148C,228C 'aws-security@amazon.com':320C 'build':49B 'bulletin':122C 'cdk':32B,46B,147C,150C,211C,230C 'chang':68B,183C 'cloud':144C 'cluster':84B,200C 'code':36B,247C 'collabor':308C 'comment':60B,175C,274C 'concern':326C 'construct':48B,155C,181C,214C,279C 'content':129C 'coordin':314C 'could':182C 'craft':65B,172C 'custom':11A,96C,114C 'cve':1A,86C,104C,166C,288C 'databas':9A,94C,112C 'database-queri':8A,93C,111C 'date':135C 'deploy':78B,194C 'deriv':246C 'descript':141C 'develop':145C,268C 'developer-author':267C 'disclosur':39B,316C 'email':319C 'ensur':242C 'escap':64B 'exist':258C,282C 'experiment':43B,154C 'exploit':202C 'fix':254C 'fork':244C 'ghsa':20A,25A,292C 'ghsa-25hh-xvj4-2cqv':19A,24A,291C 'grant':80B,196C,260C,284C 'handler':13A,98C,116C 'id':123C 'identifi':165C 'impact':217C 'import':131C 'includ':79B,195C 'incorpor':251C 'influenc':209C 'infrastructur':34B 'infrastructure-as-cod':33B 'inject':5A,90C,108C 'issu':170C,204C,223C,311C 'joseph':305C 'kit':146C 'lab':38B 'lab-disclosur':37B 'latest':239C 'like':302C 'manag':157C 'modul':152C 'name':59B,174C,273C 'new':253C 'packag':40B 'password':62B,177C,276C 'patch':249C 'pdt':140C 'pleas':318C 'privileg':56B,76B,163C,192C 'process':317C 'properti':215C 'provid':153C 'public':134C,262C,286C 'queri':10A,95C,113C 'question':324C 'recommend':235C 'redshift':41B,52B,74B,159C,190C 'refer':287C 'requir':132C,205C 'resolut':221C 'resourc':12A,97C,115C 'review':257C,281C 'run':72B,187C 'scope':127C 'secur':323C 'semaan':306C 'servic':17A,102C,120C 'set':178C 'sql':4A,50B,70B,89C,107C,185C 'superus':75B,191C 'tabl':54B,161C,259C,283C 'thank':304C 'trust':266C 'type':130C 'upgrad':236C,256C 'use':264C 'user':53B,58B,85B,160C,173C,201C,272C 'valu':66B,216C,270C 'version':218C,232C,240C 'vulner':315C 'web':16A,101C,119C 'without':63B 'workaround':263C 'would':301C 'www.npmjs.com':297C 'www.npmjs.com/package/@aws-cdk/aws-redshift-alpha':296C 'xvj4':22A,27A,294C","nicknames":[],"mitigations":[],"who_affected":"Teams whose CDK application uses the experimental @aws-cdk/aws-redshift-alpha constructs for Redshift users, tables or privileges, below version 2.274.0. Exposure depends on whether values such as user names, comments or passwords come from outside the developer's control. Teams that only write these values themselves and do not use the alpha module can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-26T00: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-151-aws/#GHSA-25hh-xvj4-2cqv","url":"https://aws.amazon.com/security/security-bulletins/rss/2026-151-aws/","severity":null,"published_at":"2026-10-26T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-26T17:08:20+00:00","fetched_at":"2026-10-26T17:08:20+00:00","note":"AWS: CVE-2026-115418 - SQL injection in the database-query custom resource handlers in Amazon Web Services (AWS)"}],"documents":[{"id":3989,"url":"https://aws.amazon.com/security/security-bulletins/rss/2026-151-aws/","title":"AWS: CVE-2026-115418 - SQL injection in the database-query custom resource handlers in Amazon Web Services (AWS)","kind":"advisory","source":"lab","text":"CVE-2026-115418 - SQL injection in the database-query custom resource handlers in Amazon Web Services (AWS)\n\n### CVE-2026-115418 - SQL injection in the database-query custom resource handlers in Amazon Web Services (AWS)\n\nBulletin ID: 2026-151-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 10/26/2026 09:30 AM PDT\n\nDescription:\n\nThe AWS Cloud Development Kit (CDK) @aws-cdk/aws-redshift-alpha module provides experimental constructs that manage Amazon Redshift users, tables and privileges. We identified CVE-2026-115418, an issue where crafted user names, comments or passwords set in these constructs could change the SQL that runs with Amazon Redshift superuser privileges at deployment, including granting access to all cluster users. Exploiting the issue requires the ability to influence the CDK application's construct property values.\n\nImpacted versions: <2.274.0-alpha.0\n\nResolution:\n\nThis issue has been addressed in @aws-cdk/aws-redshift-alpha version 2.274.0. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. After upgrading, review existing table grants to PUBLIC.\n\nWorkarounds:\n\nUse only trusted, developer-authored values for user names, comments and passwords in these constructs, and review existing table grants to PUBLIC.\n\nReferences:\n\n- CVE-2026-115418\n- GHSA-25hh-xvj4-2cqv\n- https://www.npmjs.com/package/@aws-cdk/aws-redshift-alpha\n\nAcknowledgement:\n\nWe would like to thank Joseph Semaan for 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-26T00: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"}