CVE-2025-2598
March 21, 2025
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.
Affected Packages
https://github.com/aws/aws-cdk.git (GITHUB):
Affected version(s) >=v2.172.0 <v2.178.2Fix Suggestion:
Update to version v2.178.2aws-cdk (NPM):
Affected version(s) >=2.172.0 <2.178.2Fix Suggestion:
Update to version 2.178.2cdk (NPM):
Affected version(s) >=2.173.0 <2.178.2Fix Suggestion:
Update to version 2.178.2Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.7
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.5
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Exposure of Sensitive System Information to an Unauthorized Control Sphere
EPSS
Base Score:
0.04