Vulnerability · Published Mar 21, 2025 · Assigned by AMZN

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

Medium 5.5

In plain English

A medium-severity security flaw in Cloud Development Kit Command Line Interface from AWS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.3%top 76.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmaws-cdk2.178.2GHSA-v63m-x9r9-8gqp
npmcdk2.178.2GHSA-v63m-x9r9-8gqp

Affected products (as reported)

VendorProductVersions
AWS Cloud Development Kit Command Line Interface 2.172.0 – before 2.178.2

Weakness: CWE-497 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

References