CVE-2025-2598

MEDIUM
Published Mar 21, 2025 Modified Oct 14, 2025 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.

Is your site exposed to CVE-2025-2598?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

5.5
MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Weakness Type (CWE)

CWE-497 CWE-497

Affected Products

Vendor Product
amazon aws_cloud_development_kit

References

Frequently Asked Questions

What is CVE-2025-2598? +
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. It has a CVSS v3.1 base score of 5.5 (MEDIUM).
How severe is CVE-2025-2598? +
CVE-2025-2598 has a CVSS v3.1 score of 5.5 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-2598? +
CVE-2025-2598 affects products from amazon, specifically: aws_cloud_development_kit. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-2598? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-2598 — free, no signup required.