{"id":"CVE-2024-45037","published":"2024-08-27T18:33:31Z","modified":"2024-08-27T19:26:14Z","title":"AWS CDK RestApi not generating authorizationScope correctly in resultant CFN template","vendor":"aws","product":"aws-cdk","tier":"tail","description":{"text":"The AWS Cloud Development Kit (CDK) is an open-source framework for defining cloud infrastructure using code. Customers use it to create their own applications which are converted to AWS CloudFormation templates during deployment to a customer’s AWS account. CDK contains pre-built components called \"constructs\" that are higher-level abstractions providing defaults and best practices. This approach enables developers to use familiar programming languages to define complex cloud infrastructure more efficiently than writing raw CloudFormation templates. We identified an issue in AWS Cloud Development Kit (CDK) which, under certain conditions, can result in granting authenticated Amazon Cognito users broader than intended access. Specifically, if a CDK application uses the \"RestApi\" construct with \"CognitoUserPoolAuthorizer\" as the authorizer and uses authorization scopes to limit access. This issue does not affect the availability of the specific API resources. Authenticated Cognito users may gain unintended access to protected API resources or methods, leading to potential data disclosure, and modification issues.  Impacted versions: >=2.142.0;<=2.148.0. A patch is included in CDK versions >=2.148.1. Users are advised to upgrade their AWS CDK version to 2.148.1 or newer and re-deploy their application(s) to address this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00557,"percentile":0.40096,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/aws/aws-cdk/security/advisories/GHSA-qj85-69xf-2vxq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/aws/aws-cdk/commit/4bee768f07e73ab5fe466f9ad3d1845456a0513b","tags":["x_refsource_MISC"]},{"url":"https://docs.aws.amazon.com/cdk/v2/guide/home.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.148.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":8.02},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"aws","affectedVersions":[{"vendor":"aws","product":"aws-cdk","versions":[">= 2.142.0, < 2.148.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-27T19:25:43.346731Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"aws-cdk","vulnerableRanges":[">=2.142.0, <2.148.1"],"patched":["2.148.1"],"from":["GHSA-qj85-69xf-2vxq"],"provenance":"source"}],"summary":{"text":"The AWS Cloud Development Kit (aws-cdk) has an incorrect authorization flaw in its RestApi construct, where the authorizationScope is not generated correctly in the resulting CloudFormation template when CognitoUserPoolAuthorizer is used with authorization scopes. An attacker with network access and a valid authenticated Amazon Cognito user account can reach protected API resources or methods beyond what was intended, with no user interaction required and no special configuration beyond the affected pattern.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:40Z"},"euvd":{"id":"EUVD-2024-2637","exploited":false,"provenance":"source"}}