CVE-2023-35165

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-35165
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-35165.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-35165
Aliases
Related
Published
2023-06-23T21:15:09Z
Modified
2025-07-29T10:55:25.268489Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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 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.

References

Affected packages

Git / github.com/aws/aws-cdk

Affected ranges

Type
GIT
Repo
https://github.com/aws/aws-cdk
Events

Affected versions

v1.*

v1.100.0
v1.101.0
v1.102.0
v1.103.0
v1.104.0
v1.105.0
v1.106.0
v1.106.1
v1.107.0
v1.108.0
v1.108.1
v1.109.0
v1.110.0
v1.110.1
v1.111.0
v1.112.0
v1.113.0
v1.114.0
v1.115.0
v1.116.0
v1.117.0
v1.118.0
v1.119.0
v1.120.0
v1.121.0
v1.122.0
v1.123.0
v1.124.0
v1.125.0
v1.126.0
v1.127.0
v1.128.0
v1.129.0
v1.130.0
v1.131.0
v1.132.0
v1.133.0
v1.134.0
v1.135.0
v1.136.0
v1.137.0
v1.138.0
v1.138.1
v1.138.2
v1.139.0
v1.140.0
v1.141.0
v1.142.0
v1.143.0
v1.144.0
v1.145.0
v1.146.0
v1.147.0
v1.148.0
v1.149.0
v1.150.0
v1.151.0
v1.152.0
v1.153.0
v1.153.1
v1.154.0
v1.155.0
v1.156.0
v1.156.1
v1.157.0
v1.158.0
v1.159.0
v1.160.0
v1.161.0
v1.162.0
v1.163.0
v1.163.1
v1.163.2
v1.164.0
v1.165.0
v1.166.1
v1.167.0
v1.168.0
v1.169.0
v1.170.0
v1.170.1
v1.171.0
v1.172.0
v1.173.0
v1.174.0
v1.175.0
v1.176.0
v1.177.0
v1.178.0
v1.179.0
v1.180.0
v1.181.0
v1.181.1
v1.182.0
v1.183.0
v1.184.0
v1.184.1
v1.185.0
v1.186.0
v1.186.1
v1.187.0
v1.188.0
v1.189.0
v1.190.0
v1.191.0
v1.192.0
v1.193.0
v1.194.0
v1.195.0
v1.196.0
v1.197.0
v1.198.0
v1.198.1
v1.199.0
v1.200.0
v1.201.0
v1.57.0
v1.58.0
v1.59.0
v1.60.0
v1.61.0
v1.61.1
v1.62.0
v1.63.0
v1.64.0
v1.64.1
v1.65.0
v1.66.0
v1.67.0
v1.68.0
v1.69.0
v1.70.0
v1.71.0
v1.72.0
v1.73.0
v1.74.0
v1.75.0
v1.76.0
v1.77.0
v1.78.0
v1.79.0
v1.80.0
v1.81.0
v1.82.0
v1.83.0
v1.84.0
v1.85.0
v1.86.0
v1.87.0
v1.87.1
v1.88.0
v1.89.0
v1.90.0
v1.90.1
v1.91.0
v1.92.0
v1.93.0
v1.94.0
v1.94.1
v1.95.0
v1.95.1
v1.95.2
v1.96.0
v1.97.0
v1.98.0
v1.99.0