{"answers":{"affected":"2 open source packages ship an affected version, including aws-cdk. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-45037 in the wild and no public exploit code.","fix":"Upgrade aws-cdk to 2.148.1 or later.","what":"CVE-2024-45037 is a medium-severity missing authorization vulnerability in aws-cdk, published on 27 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-45037 and fix it if it is affected.\n\nWhat it is: CVE-2024-45037 is a medium-severity missing authorization vulnerability in aws-cdk, published on 27 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-45037 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aws-cdk (npm): affected from 2.142.0; fixed in 2.148.1\n- aws-cdk (npm): affected from 2.142.0; fixed in 2.148.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-45037/ (Markdown: https://insights.sbomify.com/CVE-2024-45037/index.md)","id":"CVE-2024-45037","markdown":"https://insights.sbomify.com/CVE-2024-45037/index.md","name":"CVE-2024-45037","record":{"aliases":["GHSA-qj85-69xf-2vxq"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"AWS CDK framework","requires_auth":"low_privilege","summary":"AWS CDK users may inadvertently grant Cognito users broader API access than intended due to incorrect authorization scope generation in CloudFormation templates.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"aws_cloud_development_kit","vendor":"amazon"}],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"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: \u003e=2.142.0;\u003c=2.148.0. A patch is included in CDK versions \u003e=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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"AWS CDK RestApi not generating authorizationScope correctly in resultant CFN template","id":"CVE-2024-45037","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":2,"n_references":4,"next":{"headline":"Device crash via malformed MQTT packet when downlink is enabled in Meshtastic device firmware","id":"CVE-2024-45038"},"packages":[{"ecosystem":"npm","fixed":["2.148.1"],"introduced":["2.142.0"],"last_affected":[],"package":"aws-cdk","purl":null,"source":"GHSA-qj85-69xf-2vxq"},{"ecosystem":"npm","fixed":["2.148.1"],"introduced":["2.142.0"],"last_affected":[],"package":"aws-cdk","purl":"pkg:npm/aws-cdk","source":"GHSA-qj85-69xf-2vxq"}],"prev":{"headline":"Improper Access Control Vulnerability When Accessing a Maliciously Crafted Tophat Link","id":"CVE-2024-45036"},"products":["aws-cdk"],"published":"2024-08-27","related":[{"cvss_score":6.6,"headline":"AWS CDK EKS overly permissive trust policies","id":"CVE-2023-35165","kev_date_added":null,"published":"2023-06-23"},{"cvss_score":5.7,"headline":"AWS CDK CLI prints AWS credentials retrieved by custom credential plugins","id":"CVE-2025-2598","kev_date_added":null,"published":"2025-03-21"},{"cvss_score":1.8,"headline":"IAM OIDC custom resource allows connection to unauthorized OIDC provider in aws-cdk","id":"CVE-2025-23206","kev_date_added":null,"published":"2025-01-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-27","vendors":["aws"]},"summary":"AWS CDK users may inadvertently grant Cognito users broader API access than intended due to incorrect authorization scope generation in CloudFormation templates.","url":"https://insights.sbomify.com/CVE-2024-45037/"}