CVE-2025-2598 in Amazon Aws Cloud Development Kit
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 e...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Amazon | Aws Cloud Development Kit | ≥ 2.172.0, < 2.178.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: ff89ba41-3aa1-4d27-914a-91399e9639e5
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-2598 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-041545-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Published | 2025-03-21 |
| Last modified | 2025-10-14 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-497: CWE-497
Related attack patterns (CAPEC)
CAPEC-170 Web Application Fingerprinting via CWE-497
CAPEC-694 System Location Discovery via CWE-497
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
AWS CDK CLI versions prior to 2.178.2 print AWS credentials to the console when using a credential plugin that returns an expiration property, potentially exposing sensitive information.
An attacker with access to the console output where the AWS CDK CLI is executed could capture the printed AWS credentials, allowing unauthorized access to AWS resources.
Questions
What is CVE-2025-2598?
AWS CDK CLI versions prior to 2.178.2 print AWS credentials to the console when using a credential plugin that returns an expiration property, potentially exposing sensitive information.
What is the CVSS score for CVE-2025-2598?
CVE-2025-2598 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.3%.
Is CVE-2025-2598 actively exploited?
No confirmed active exploitation of CVE-2025-2598 as of 2026-05-30.
How do I remediate CVE-2025-2598?
Priority: HIGH. Advisory: https://aws.amazon.com/security/security-bulletins/AWS-2025-005/ PSIRT: ff89ba41-3aa1-4d27-914a-91399e9639e5
What systems are affected by CVE-2025-2598?
CVE-2025-2598 affects Amazon Aws Cloud Development Kit.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Amazon","product":"Aws Cloud Development Kit","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-10-14.