CVE-2025-2598
MEDIUM 5.7CVSS 4.0AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
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.
- Published
- 21 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- ff89ba41-3aa1-4d27-914a-91399e9639e5
- NVD status
- Modified
- Weakness
- CWE-497
- Also known as
- GHSA-v63m-x9r9-8gqp
- Sources
- NVDJSONOSV GHSA-v63m-x9r9-8gqpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ff89ba41-3aa1-4d27-914a-91399e9639e5 (Secondary) | CVSS 4.0 | MEDIUM 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | ff89ba41-3aa1-4d27-914a-91399e9639e5 (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | amazon | aws_cloud_development_kitcpe:2.3:a:amazon:aws_cloud_development_kit:*:*:*:*:*:*:*:* |
>= 2.172.0, < 2.178.2 | 2.178.2 |
| OSV | npm | aws-cdk | >= 2.172.0, < 2.178.2 | 2.178.2 |
| OSV | npm | cdk | >= 2.172.0, < 2.178.2 | 2.178.2 |
References
- https://aws.amazon.com/security/security-bulletins/AWS-2025-005/ · Vendor Advisory, WEB
- https://github.com/aws/aws-cdk/releases/tag/v2.178.2 · WEB
- https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-2598 · ADVISORY
- https://github.com/aws/aws-cdk · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 21 Mar 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Mar 2025)