# CVE-2024-45037: AWS CDK RestApi not generating authorizationScope correctly in resultant CFN template

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2024-08-27T18:33:31.486Z
- Modified: 2026-06-17T07:53:28.273Z
- Also known as: GHSA-qj85-69xf-2vxq
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- aws aws-cdk: >= 2.142.0, < 2.148.1
- aws-cdk (npm): from 2.142.0 before 2.148.1
- amazon aws_cloud_development_kit: from 2.142.0 before 2.148.1

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/aws/aws-cdk/security/advisories/GHSA-qj85-69xf-2vxq> (vendor-advisory, web)
- <https://github.com/aws/aws-cdk/commit/4bee768f07e73ab5fe466f9ad3d1845456a0513b> (patch, web)
- <https://docs.aws.amazon.com/cdk/v2/guide/home.html> (product, web)
- <https://github.com/aws/aws-cdk/releases/tag/v2.148.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45037> (advisory)
- <https://github.com/aws/aws-cdk> (package)

## Sources

- CVE List: [CVE-2024-45037](https://www.cve.org/CVERecord?id=CVE-2024-45037), CVE Terms of Use, modified 2024-08-27
- GitHub Advisory Database: [GHSA-qj85-69xf-2vxq](https://github.com/advisories/GHSA-qj85-69xf-2vxq), CC-BY-4.0, modified 2024-08-28
- NVD: [CVE-2024-45037](https://nvd.nist.gov/vuln/detail/CVE-2024-45037), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45037 · Whole record: https://cve.day/CVE-2024-45037.json · Rebuilt by cve.day 2026-11-25T22:58:44.804Z
