CVE-2025-2598

AWS CDK CLI prints AWS credentials retrieved by custom credential plugins

MEDIUM
5.5
CVSS Score
Published: March 21, 2025 at 02:14 PM UTC
Updated: June 17, 2026 at 09:07 AM UTC
2 products affected across 2 vendorsAWS Cloud Development KitCdk Cli

Using Cloud Development Kit Command Line Interface by AWS?

Get instant alerts when new vulnerabilities affect Cloud Development Kit Command Line Interface - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.172.0 ≤ v < 2.178.2
2.172.0 ≤ v < 2.178.22.172.0
Affected range stops below 2.178.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

Vendor Advisory
Source: ff89ba41-3aa1-4d27-914a-91399e9639e5
https://aws.amazon.com/security/security-bulletins/AWS-2025-005/
Third Party AdvisoryVendor Advisory
Source: ff89ba41-3aa1-4d27-914a-91399e9639e5
https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMAMZN
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-497

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card