{"cve":"CVE-2025-2598","nvd":{"published":"2025-03-21T15:15:43.120","modified":"2026-06-17T09:07:15.503","status":"Modified","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_v4":{"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","score":5.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5},"cwes":["CWE-497"],"references":["https://aws.amazon.com/security/security-bulletins/AWS-2025-005/","https://github.com/aws/aws-cdk/releases/tag/v2.178.2","https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp"],"products":["amazon:aws_cloud_development_kit"],"source":"nvd","synced_at":"2026-10-19T22:00:28.034033815+00:00"},"epss":{"cve":"CVE-2025-2598","score":0.0031,"percentile":0.23888,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v63m-x9r9-8gqp","url":"https://osv.dev/vulnerability/GHSA-v63m-x9r9-8gqp","summary":"AWS CDK CLI prints AWS credentials retrieved by custom credential plugins","modified":"2025-10-14T21:58:44Z","packages":[{"ecosystem":"npm","name":"aws-cdk","purl":"pkg:npm/aws-cdk","ranges":[">=2.172.0 <2.178.2"],"fixed":["2.178.2"]},{"ecosystem":"npm","name":"cdk","purl":"pkg:npm/cdk","ranges":[">=2.172.0 <2.178.2"],"fixed":["2.178.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}