CVE-2025-2598 json
AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
published 2025-03-21 19 mo ago modified 2026-06-17 4 mo ago also GHSA-v63m-x9r9-8gqp , EUVD-2025-7239
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm aws-cdk 2.178.2
- npm cdk 2.178.2
- AWS Cloud Development Kit Command Line Interface 2.178.2
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.31% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.7 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| CNA | 4.0 | 5.7 | CVSS: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 |
| GitHub | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | aws-cdk | >=2.172.0, <2.178.2 |
2.178.2 |
| npm | cdk | >=2.172.0, <2.178.2 |
2.178.2 |
Affected products
- AWS Cloud Development Kit Command Line Interface
Classification
- Weakness
-
- CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere
References
-
github.com
/aws/aws-cdk/releases/tag/v2.178.2
patch, web
-
aws.amazon.com
/security/security-bulletins/AWS-2025-005/
vendor-advisory
-
github.com
/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp
third-party-advisory, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-2598
advisory
-
aws.amazon.com
/security/security-bulletins/AWS-2025-005
web
-
github.com
/aws/aws-cdk
package
Sources
- CVE List CVE-2025-2598
- GitHub Advisory GHSA-v63m-x9r9-8gqp
- NVD CVE-2025-2598
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.