Vulnerabilities

CVE-2025-2598

Medium 5.7 CVSS 4.0

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.

Description as published by the source, in English.

Key facts

Published
2025-03-21
Last modified
2026-06-17
Assigned by
ff89ba41-3aa1-4d27-914a-91399e9639e5
CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:
Scored by
ff89ba41-3aa1-4d27-914a-91399e9639e5
Probability of exploitation
0.3 % higher than 18 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
aws-cdk (npm) ≥ 2.172.0, < 2.178.2 Affected
cdk (npm) ≥ 2.172.0, < 2.178.2 Affected
Amazon Aws Cloud Development Kit ≥ 2.172.0, < 2.178.2 Affected

Weakness type

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1614: System Location Discovery discovery

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities