CVE-2025-2598: AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
Vulnerability summary
CVE-2025-2598 is a medium (CVSS 5.7) vulnerability in amazon aws_cloud_development_kit. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 25.6% of scored vulnerabilities.
Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 21-03-2025PublishedVulnerability first disclosed.
- 14-10-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated5.7MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST5.7MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · NpmEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
26%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.31% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Npm2 products
- aws-cdk≥ 2.172.0, < 2.178.2
- cdk≥ 2.172.0, < 2.178.2
Amazon1 product
- aws_cloud_development_kit≥ 2.172.0, < 2.178.2
Aws1 product
- cloud development kit command line interface≥ 2.172.0, < 2.178.2
3 vendors · 4 products
References
6 links- aws.amazon.com/security/security-bulletins/AWS-2025-005/Vendor Advisory
- github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqpThird Party AdvisoryWEBVendor Advisory
- github.com/aws/aws-cdkPACKAGE