CVE-2025-2598
AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
- State
- Published
- Severity
- 5.7 Medium
- Published
- Mar 21, 2025
- Updated
- Oct 14, 2025
- Reserved
- Mar 21, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 5.7 Medium | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | AMZN |
| 3.1 | 5.5 Medium | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | AMZN |
Weaknesses
- CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere
Affected Products
| Product | Versions |
|---|---|
Cloud Development Kit Command Line InterfaceAWS |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.