{"id":"CVE-2025-2598","published":"2025-03-21T14:14:29Z","modified":"2025-10-14T18:38:18Z","title":"AWS CDK CLI prints AWS credentials retrieved by custom credential plugins","vendor":"AWS","product":"Cloud Development Kit Command Line Interface","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0031,"percentile":0.24468,"provenance":"source"},"cwes":[{"id":"CWE-497","name":"Exposure of Sensitive System Information to an Unauthorized Control Sphere"}],"references":[{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-005/","tags":["vendor-advisory"]},{"url":"https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp","tags":["third-party-advisory"]},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.178.2","tags":["patch"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":4.89},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.85}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2025-11-23","earliestUrl":"https://github.com/Catnip-Express-Maxim/AWSTESTEXPLOIT","repos":[{"name":"Catnip-Express-Maxim/AWSTESTEXPLOIT","url":"https://github.com/Catnip-Express-Maxim/AWSTESTEXPLOIT","stars":0,"created":"2025-11-23"},{"name":"SallyXVIII/Final-Proj","url":"https://github.com/SallyXVIII/Final-Proj","stars":0,"created":"2025-11-24"}]},"first":{"date":"2025-11-23","source":"PoC-in-GitHub","url":"https://github.com/Catnip-Express-Maxim/AWSTESTEXPLOIT"},"provenance":"source"},"vendorSlug":"aws","affectedVersions":[{"vendor":"AWS","product":"Cloud Development Kit Command Line Interface","versions":[">= 2.172.0, < 2.178.2"]}],"capec":[{"id":"CAPEC-150","name":"Collect Data from Common Resource Locations"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-21T15:20:48.330547Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"aws-cdk","vulnerableRanges":[">=2.172.0, <2.178.2"],"patched":["2.178.2"],"from":["GHSA-v63m-x9r9-8gqp"],"provenance":"source"},{"ecosystem":"npm","package":"cdk","vulnerableRanges":[">=2.172.0, <2.178.2"],"patched":["2.178.2"],"from":["GHSA-v63m-x9r9-8gqp"],"provenance":"source"}],"summary":{"text":"The AWS Cloud Development Kit Command Line Interface (AWS CDK CLI) from AWS prints AWS credentials to console output when they are retrieved by a custom credential plugin that returns an expiration property. An attacker with local access and low privileges, requiring no user interaction, could read the exposed credentials from the console output and obtain confidentiality impact on the AWS account they grant access to.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:42Z"},"euvd":{"id":"EUVD-2025-7239","exploited":false,"provenance":"source"}}