Vulnerability in Amazon AWS Cloud Development Kit
CVE-2025-2598
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.003, 24.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
3 public repositories with exploit or proof-of-concept code for this CVE:
- Catnip-Express-Maxim/AWSTESTEXPLOIT (last pushed 2025-11-25): Testing if AWS exploit CVE-2025-2598 still works
- SallyXVIII/Final-Proj (last pushed 2025-11-24): In theory, we exploit cve-2025-2598. Hope it works
- SpongeBob-369/CVE-2025-2598
Also mentioned in 5 other repositories (fkie-cad/nvd-json-data-feeds, nomi-sec/PoC-in-GitHub, SpongeBob-369/CVE-2023-2598, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- aws.amazon.com/security/security-bulletins/AWS-2025-005/ (vendor-advisory, Vendor Advisory)
- github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp (Vendor Advisory, third-party-advisory)
- github.com/aws/aws-cdk/releases/tag/v2.178.2 (patch)
This CVE has public exploit evidence. See the latest CVEs with public exploits.