# CVE-2025-2598: AWS CDK CLI prints AWS credentials retrieved by custom credential plugins

> CVE-2025-2598: AWS CDK CLI prints AWS credentials retrieved by custom credential plugins. CVSS 5.5 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-2598
Last updated: 2026-06-17T09:07:15Z

- Published: 2025-03-21 14:14 UTC · Updated: 2026-06-17 09:07 UTC · Assigner: AMZN
- CVSS: 5.5 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.31%, 24th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-497

## 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.

## Affected vendors and products

- AWS: Cloud Development Kit Command Line Interface

## Tracked companies

- [Amazon Web Services](https://rewindex.com/company/aws.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-2598)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-2598)
- [https://aws.amazon.com/security/security-bulletins/AWS-2025-005/](https://aws.amazon.com/security/security-bulletins/AWS-2025-005/)
- [https://github.com/aws/aws-cdk/releases/tag/v2.178.2](https://github.com/aws/aws-cdk/releases/tag/v2.178.2)
- [https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp](https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-2598 · Markdown: https://rewindex.com/cve/CVE-2025-2598.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-2598 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:04:03.339Z
