CVE-2025-2598

AWS CDK CLI prints AWS credentials retrieved by custom credential plugins

Published Mar 21, 2025 CVSS 4.0 · 5.7 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-7239 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.
Github GHSA Github GHSA GHSA-v63m-x9r9-8gqp AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
History
Type Values Removed Values Added
First Time appeared Amazon
Amazon aws Cloud Development Kit
CPEs cpe:2.3:a:amazon:aws_cloud_development_kit:*:*:*:*:*:*:*:*
Vendors & Products Amazon
Amazon aws Cloud Development Kit
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
Weaknesses CWE-497
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
AMZN
Published
Updated
Oct 14, 2025, 6:38 PM
Reserved
Mar 21, 2025, 11:48 AM
Status
Modified
Published
Mar 21, 2025, 3:15 PM
Modified
Jun 17, 2026, 9:07 AM