CVE-2025-2598
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
-
CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere
The product does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the product does.
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
References
- https://aws.amazon.com/security/security-bulletins/AWS-2025-005/
- https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp
- https://github.com/aws/aws-cdk/releases/tag/v2.178.2
Related at Berigo
Articles
-
A fake sign-in page passes the one-time code straight to Microsoft
Same product
2026-08-18
ANY.RUN describes the Mirage2FA phishing toolkit, which places itself between the victim and Microsoft 365. It collects the password, the one-time co…
-
Voicemail lures slip past MFA and hunt for payroll payouts
Same product
2026-08-07
Arctic Wolf has uncovered a widespread phishing campaign against Microsoft 365 accounts in Europe, Canada and the US. The attackers take over the ses…
-
Red Hat npm Miasma credential-stealing campaign
Same product
2026-06-05
32 npm packages under @redhat-cloud-services were modified with malware that steals cloud, SSH and AI tool credentials and spreads to further package…
-
Anthropic launches Glasswing and an AI model aimed at security
Same product
2026-04-07
Claude Mythos Preview is built to find and fix severe software flaws, and Anthropic has assembled over 40 companies in a defensive consortium.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.