CVE-2025-2598

published 21 Mar 2025 · updated 14 Oct 2025

AWS CDK CLI prints AWS credentials retrieved by custom credential plugins

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.178.2.

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, products and packages with version ranges

VendorProductVersionsFixed
AWS>=2.172.0 <2.178.22.178.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-2598 severity on Zeptric[![CVE-2025-2598](https://zeptric.io/badge/cve/CVE-2025-2598.svg)](https://zeptric.io/cve/CVE-2025-2598)