CVE-2023-35165
AWS CDK Overly Permissive Trust Policy in EKS Clusters
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.
INFO
Published Date :
June 23, 2023, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 8:08 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-35165
.
URL | Resource |
---|---|
https://github.com/aws/aws-cdk/issues/25674 | Issue Tracking Mitigation Third Party Advisory |
https://github.com/aws/aws-cdk/security/advisories/GHSA-rx28-r23p-2qc3 | Exploit Mitigation Third Party Advisory |
https://github.com/aws/aws-cdk/issues/25674 | Issue Tracking Mitigation Third Party Advisory |
https://github.com/aws/aws-cdk/security/advisories/GHSA-rx28-r23p-2qc3 | Exploit Mitigation Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-35165
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-35165
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/aws/aws-cdk/issues/25674 Added Reference https://github.com/aws/aws-cdk/security/advisories/GHSA-rx28-r23p-2qc3 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Jul. 06, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/aws/aws-cdk/issues/25674 No Types Assigned https://github.com/aws/aws-cdk/issues/25674 Issue Tracking, Mitigation, Third Party Advisory Changed Reference Type https://github.com/aws/aws-cdk/security/advisories/GHSA-rx28-r23p-2qc3 No Types Assigned https://github.com/aws/aws-cdk/security/advisories/GHSA-rx28-r23p-2qc3 Exploit, Mitigation, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:amazon:aws_cloud_development_kit:*:*:*:*:*:*:*:* versions from (including) 1.57.0 up to (excluding) 1.202.0 *cpe:2.3:a:amazon:aws_cloud_development_kit:*:*:*:*:*:*:*:* versions from (including) 2.0.0 up to (excluding) 2.80.0
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-35165
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-35165
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.10 }} 0.00%
score
0.41719
percentile