CVE-2025-2598

Medium

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductAmazon Aws Cloud Development Kit
PublishedMar 21, 2025
First seenMar 21, 2025
Weakness typeCWE-497CWE-497

How to fix

Update
  • amazon aws_cloud_development_kit2.178.2 or later
  • aws-cdk2.178.2 or later
  • cdk2.178.2 or later

Affected products

ProductAffected versionsFixed in
amazon aws_cloud_development_kit2.172.0 ≤ v < 2.178.22.178.2
aws-cdknpm2.172.0 ≤ v < 2.178.22.178.2
cdknpm2.172.0 ≤ v < 2.178.22.178.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.