5.7

CVE-2025-2598: AWS CDK CLI prints AWS credentials retrieved by custom credential plugins

Modified
AliasesGHSA-v63m-x9r9-8gqp
Published 21-03-2025Last modified 14-10-2025

Vulnerability summary

CVE-2025-2598 is a medium (CVSS 5.7) vulnerability in amazon aws_cloud_development_kit. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 25.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.7/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.31%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 21-03-2025
    PublishedVulnerability first disclosed.
  2. 14-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 3 sources · 2 versions

EPSS trend

Probability

0.31%

Chance of exploitation in the next 30 days

Percentile

26%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.31% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Npm2 products
  • aws-cdk≥ 2.172.0, < 2.178.2
  • cdk≥ 2.172.0, < 2.178.2
Amazon1 product
Aws1 product

3 vendors · 4 products

References

6 links