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

- Severity: Medium 5.7 (CVSS:4.0, scored by AMZN) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2025-03-21T14:14:29.040Z
- Modified: 2026-06-17T09:07:15.503Z
- Also known as: GHSA-v63m-x9r9-8gqp
- Weaknesses: CWE-497
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- AWS Cloud Development Kit Command Line Interface: from 2.172.0 before 2.178.2
- aws-cdk (npm): from 2.172.0 before 2.178.2
- cdk (npm): from 2.172.0 before 2.178.2
- amazon aws_cloud_development_kit: from 2.172.0 before 2.178.2

## Every score

- AMZN: CVSS:4.0 5.7 Medium `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`
- AMZN: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://aws.amazon.com/security/security-bulletins/AWS-2025-005/> (vendor-advisory)
- <https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp> (third-party-advisory, vendor-advisory, web)
- <https://github.com/aws/aws-cdk/releases/tag/v2.178.2> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-2598> (advisory)
- <https://aws.amazon.com/security/security-bulletins/AWS-2025-005> (web)
- <https://github.com/aws/aws-cdk> (package)

## Sources

- CVE List: [CVE-2025-2598](https://www.cve.org/CVERecord?id=CVE-2025-2598), CVE Terms of Use, modified 2025-10-14
- GitHub Advisory Database: [GHSA-v63m-x9r9-8gqp](https://github.com/advisories/GHSA-v63m-x9r9-8gqp), CC-BY-4.0, modified 2025-10-14
- NVD: [CVE-2025-2598](https://nvd.nist.gov/vuln/detail/CVE-2025-2598), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-2598 · Whole record: https://cve.day/CVE-2025-2598.json · Rebuilt by cve.day 2026-11-25T22:58:55.409Z
