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

Read the record on cve.org

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

CVSSScoreVectorSource
4.05.7 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NAMZN
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NAMZN

Weaknesses

  • CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere

Affected Products

ProductVersions
Cloud Development Kit Command Line InterfaceAWS
  • 2.172.0 to before 2.178.2Affected

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.