CVE-2025-2598: AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
Affects aws-cdkSource GCVE Database
Not known to be exploited · CVSS 5.7 Medium : upgrade to 2.178.2 when convenient.
Data as of 30 Oct 2026, 07:30 UTC
- Patch
- Available – fixed in 2.178.2
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade aws-cdk to 2.178.2.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewaws-cdkpkg:brew/aws-cdkOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- aws.amazon.com/security/security-bulletins/AWS-2025-005/ (opens in a new tab)
- github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2598.json (opens in a new tab)
- github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-2598 (opens in a new tab)
- github.com/aws/aws-cdk/releases/tag/v2.178.2 (opens in a new tab)