CVE-2025-2598
published medium CVSS 4.0 · 5.7AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AWS | — | Cloud Development Kit Command Line Interface2.172.0 to < 2.178.2 · Other versions: unaffected | Affected | Not stated | AMZN |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- AMZN · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | AMZN · cna | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| AWS | Cloud Development Kit Command Line Interface | 2.172.0 to < 2.178.2 (affected · semver)Default: unaffected | AMZN · cna |
Weaknesses
1- CWE-497 CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere
References
3Provider assertions
2AMZN · cna
AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0f0ada70e4bf72c0d950e0e3fbe9e40dd4bdcae282db9297e89cad9ec5d2a90f
- Ingested
- 23 Sep 2026, 08:43:47 UTC
- Source record
- Official CVE record