Vulnerability · Published Mar 21, 2025 · Assigned by AMZN
CVE-2025-2598AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
Medium 5.5
In plain English
A medium-severity security flaw in Cloud Development Kit Command Line Interface from AWS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | aws-cdk | 2.178.2 | GHSA-v63m-x9r9-8gqp |
| npm | cdk | 2.178.2 | GHSA-v63m-x9r9-8gqp |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| AWS | Cloud Development Kit Command Line Interface | 2.172.0 – before 2.178.2 |
Weakness: CWE-497 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N