CVE-2025-2598 AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
MediumCVSS 5.7
EPSS 0.31%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Cloud Platforms
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.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Amazon aws cloud development kit | >= 2.172.0, < 2.178.2 | 2.178.2 | Fixed |
| AWS Cloud Development Kit Command Line Interface | >= 2.172.0, < 2.178.2 | 2.178.2 | Fixed |
| npm aws-cdk(npm) | >= 2.172.0, < 2.178.2 | 2.178.2 | Fixed |
| npm cdk(npm) | >= 2.172.0, < 2.178.2 | 2.178.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm aws-cdk(npm) | >= 2.172.0, < 2.178.2 | 2.178.2 |
| npm cdk(npm) | >= 2.172.0, < 2.178.2 | 2.178.2 |
| AWS Cloud Development Kit Command Line Interface | >= 2.172.0, < 2.178.2 | 2.178.2 |
| Amazon aws cloud development kit | >= 2.172.0, < 2.178.2 | 2.178.2 |
References
- github.com third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- aws.amazon.com vendor-advisory
- github.com patch
- github.com
- github.com product