{"id":"CVE-2025-2598","state":"PUBLISHED","title":"AWS CDK CLI prints AWS credentials retrieved by custom credential plugins","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.","publishedAt":"2025-03-21T14:14:29.040Z","updatedAt":"2025-10-14T18:38:18.174Z","severity":{"score":5.7,"label":"Medium","version":"4.0","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","source":"AMZN"},"assigner":"AMZN","products":["AWS Cloud Development Kit Command Line Interface"],"affected":[{"vendor":"AWS","product":"Cloud Development Kit Command Line Interface","defaultStatus":"unaffected","versions":[{"version":"2.172.0","status":"affected","lessThan":"2.178.2","versionType":"semver"}]}],"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"],"weaknesses":["CWE-497"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/2xxx/CVE-2025-2598.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-2598","state":"PUBLISHED","datePublished":"2025-03-21T14:14:29.040Z","dateUpdated":"2025-10-14T18:38:18.174Z","assignerShortName":"AMZN","assignerOrgId":"ff89ba41-3aa1-4d27-914a-91399e9639e5","dateReserved":"2025-03-21T11:48:52.961Z"},"containers":{"cna":{"title":"AWS CDK CLI prints AWS credentials retrieved by custom credential plugins","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"AWS","product":"Cloud Development Kit Command Line Interface","defaultStatus":"unaffected","versions":[{"version":"2.172.0","status":"affected","lessThan":"2.178.2","versionType":"semver"}]}],"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"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":5.7,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-497","description":"CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"AMZN","orgId":"ff89ba41-3aa1-4d27-914a-91399e9639e5","dateUpdated":"2025-10-14T18:38:18.174Z"},"impacts":[{"capecId":"CAPEC-150","descriptions":[{"lang":"en","value":"CAPEC-150 Collect Data from Common Resource Locations"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-21T15:20:48.330547Z","id":"CVE-2025-2598","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-21T15:21:14.276Z"}}]}}}