CVE-2023-35165 in Amazon Aws Cloud Development Kit
AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in code and provision it through AWS CloudFormation. In the packages `aws-cdk-lib` 2.0.0 until 2.80.0 and `@aws-cdk/aws-eks` 1.57.0 until 1.202.0, `eks.Cluster` and `eks.FargateCluster` constructs crea...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Amazon | Aws Cloud Development Kit | ≥ 1.57.0, < 1.202.0 ≥ 2.0.0, < 2.80.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in code and provision it through AWS CloudFormation. In the packages `aws-cdk-lib` 2.0.0 until 2.80.0 and `@aws-cdk/aws-eks` 1.57.0 until 1.202.0, `eks.Cluster` and `eks.FargateCluster` constructs create two roles, `CreationRole` and `default MastersRole`, that have an overly permissive trust policy. The first, referred to as the `CreationRole`, is used by lambda handlers to create the cluster and deploy Kubernetes resources (e.g `KubernetesManifest`, `HelmChart`, ...) onto it. Users with CDK version higher or equal to 1.62.0 (including v2 users) may be affected. The second, referred to as the `default MastersRole`, is provisioned only if the `mastersRole` property isn't provided and has permissions to execute `kubectl` commands on the cluster. Users with CDK version higher or equal to 1.57.0 (including v2 users) may be affected. The issue has been fixed in `@aws-cdk/aws-eks` v1.202.0 and `aws-cdk-lib` v2.80.0. These versions no longer use the account root principal. Instead, they restrict the trust policy to the specific roles of lambda handlers that need it. There is no workaround available for CreationRole. To avoid creating the `default MastersRole`, use the `mastersRole` property to explicitly provide a role.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-35165 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-057932-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-06-23 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-863: Incorrect Authorization
Software performs an authorization check incorrectly, allowing access beyond intended privileges.
Analysis AI-written, not human-reviewed
{ "executive_summary": "CVE-2023-35165 affects AWS Cloud Development Kit (AWS CDK) versions 2.0.0 to 2.80.0 for `aws-cdk-lib` and 1.57.0 to 1.202.0 for `@aws-cdk/aws-eks`. The `eks.Cluster` and `eks.FargateCluster` constructs create overly permissive `CreationRole` and `default MastersRole` roles, which can lead to unauthorized access and privilege escalation.", "attack_vector_detail": "An attacker with access to the AWS CDK codebase or the ability to modify the CDK-generated CloudFormation templates could exploit the overly permissive roles to gain unauthorized access to the EKS cluster and its resources. This could include deploying malicious workloads, accessing sensitive data, or modifying cluster configurations.", "affected_components": [ "aws-cdk-lib (versions 2.0.0 to 2.80.0)", "@aws-cdk/aws-eks (versions 1.57.0 to 1.202.0)" ], "exploitation_likelihood":
Vulnerability details: AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in code and provision it through AWS CloudFormation. In the packages `aws-cdk-lib` 2.0.0 until 2.80.0 and `@aws-cdk/aws-eks` 1.57.0 until 1.202.0, `eks.Cluster` and `eks.FargateCluster` constructs create two roles, `CreationRole` and `default MastersRole`, that have an overly permissive trust policy. The first, referred to as the `CreationRole`, is used by lambda handlers to cre CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Questions
What is CVE-2023-35165?
{ "executive_summary": "CVE-2023-35165 affects AWS Cloud Development Kit (AWS CDK) versions 2.0.0 to 2.80.0 for `aws-cdk-lib` and 1.57.0 to 1.202.0 for `@aws-cdk/aws-eks`. The `eks.Cluster` and `eks.FargateCluster` constructs create overly permissive `CreationRole` and `default MastersRole` roles, which can lead to unauthorized access and privilege escalation.", "attack_vector_detail": "An attacker with access to the AWS CDK codebase or the ability to modify the CDK-generated CloudFormation
What is the CVSS score for CVE-2023-35165?
CVE-2023-35165 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.0%.
Is CVE-2023-35165 actively exploited?
No confirmed active exploitation of CVE-2023-35165 as of 2026-09-25.
How do I remediate CVE-2023-35165?
Priority: MEDIUM.
What systems are affected by CVE-2023-35165?
CVE-2023-35165 affects Amazon Aws Cloud Development Kit.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Amazon","product":"Aws Cloud Development Kit","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.