5.5Medium
CVE-2025-2598AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
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.
Weakness (CWE):
CWE-497
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| amazon | aws cloud development kit | 2.172.0 – < 2.178.2 | |
| AWS | Cloud Development Kit Command Line Interface | 2.172.0 – < 2.178.2 |
References and patches
- https://aws.amazon.com/security/security-bulletins/AWS-2025-005/ vendor-advisoryVendor Advisory
- https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp third-party-advisoryVendor Advisory
- https://github.com/aws/aws-cdk/releases/tag/v2.178.2 patch
CPE matches (NVD) (1)
cpe:2.3:a:amazon:aws_cloud_development_kit:*:*:*:*:*:*:*:*≥ 2.172.0 < 2.178.2