CVE-2025-2598
AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
Description
When the AWS Cloud Development Kit (AWS CDK) Command Line Interface (AWS CDK CLI) is used with a credential plugin which returns an expiration property with the retrieved AWS credentials, the credentials are printed to the console output. To mitigate this issue, users should upgrade to version 2.178.2 or later and ensure any forked or derivative code is patched to incorporate the new fixes.
INFO
Published Date :
March 21, 2025, 3:15 p.m.
Last Modified :
Oct. 14, 2025, 7:15 p.m.
Remotely Exploit :
No
Source :
ff89ba41-3aa1-4d27-914a-91399e9639e5
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | ff89ba41-3aa1-4d27-914a-91399e9639e5 | ||||
| CVSS 4.0 | MEDIUM | ff89ba41-3aa1-4d27-914a-91399e9639e5 |
Solution
- Upgrade AWS CDK CLI to version 2.178.2 or later.
- Ensure custom code is patched to include fixes.
Public PoC/Exploit Available at Github
CVE-2025-2598 has a 2 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
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-2025-2598.
| URL | Resource |
|---|---|
| https://aws.amazon.com/security/security-bulletins/AWS-2025-005/ | Vendor Advisory |
| https://github.com/aws/aws-cdk/releases/tag/v2.178.2 | |
| https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp | Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-2598 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-2025-2598
weaknesses.
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).
None
Python Shell
None
Shell Python HTML
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-2598 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-2598 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 ff89ba41-3aa1-4d27-914a-91399e9639e5
Oct. 14, 2025
Action Type Old Value New Value Added Reference https://github.com/aws/aws-cdk/releases/tag/v2.178.2 -
Initial Analysis by [email protected]
Sep. 19, 2025
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:amazon:aws_cloud_development_kit:*:*:*:*:*:*:*:* versions from (including) 2.172.0 up to (excluding) 2.178.2 Added Reference Type AMZN: https://aws.amazon.com/security/security-bulletins/AWS-2025-005/ Types: Vendor Advisory Added Reference Type AMZN: https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp Types: Vendor Advisory -
CVE Modified by ff89ba41-3aa1-4d27-914a-91399e9639e5
Mar. 21, 2025
Action Type Old Value New Value Added Reference https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp -
New CVE Received by ff89ba41-3aa1-4d27-914a-91399e9639e5
Mar. 21, 2025
Action Type Old Value New Value Added Description When the AWS Cloud Development Kit (AWS CDK) Command Line Interface (AWS CDK CLI) is used with a credential plugin which returns an expiration property with the retrieved AWS credentials, the credentials are printed to the console output. To mitigate this issue, users should upgrade to version 2.178.2 or later and ensure any forked or derivative code is patched to incorporate the new fixes. Added CVSS V4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Added CWE CWE-497 Added Reference https://aws.amazon.com/security/security-bulletins/AWS-2025-005/