CVE-2025-2598 Details
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.
A vulnerability exists in the AWS Cloud Development Kit (CDK) Command Line Interface (CLI) versions 2.172.0 prior to 2.178.2. When used with a credential plugin that returns temporary AWS credentials including an expiration property, these credentials may be inadvertently printed to the console output. This issue does not affect plugins that omit the expiration property.
Upgrade the AWS CDK CLI to version 2.178.2 or later. If you have a custom credential plugin, ensure it is updated to remove the expiration property from the credentials object. If an upgrade is not possible, you can downgrade to version 2.171.1.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://aws.amazon.com/security/security-bulletins/AWS-2025-005/ | AMZN | Vendor Advisory |
| https://github.com/aws/aws-cdk/releases/tag/v2.178.2 | AMZN | |
| https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp | AMZN | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-497 | Exposure of Sensitive System Information to an Unauthorized Control Sphere | AMZN |
Affected Products
| Product | Versions |
|---|---|
| amazon aws cloud development kit | >= 2.172.0, < 2.178.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | AMZN |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 14, 2025 | CVE Modified | AMZN |
| Sep 19, 2025 | Initial Analysis | [email protected] |
| Mar 21, 2025 | CVE Modified | AMZN |
| Mar 21, 2025 | New CVE Received | AMZN |