{"schemaVersion":3,"id":"CVE-2025-2598","aliases":["GHSA-v63m-x9r9-8gqp"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-03-21T14:14:29.040Z","modified":"2025-10-14T18:38:18.174Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.7,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.7,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":5.7,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.7,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0031,"percentile":0.22397,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.03799999999999997,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00272},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0031,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0031,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0031,"percentile":0.22397}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00272,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0031,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0031,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0031,"percentile":0.22397}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-497","name":"Exposure of Sensitive System Information to an Unauthorized Control Sphere","description":"The product does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the product does.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/497.html"}],"affected":[{"vendor":"amazon","product":"aws_cloud_development_kit","name":"aws cloud development kit","label":"aws_cloud_development_kit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.172.0, < 2.178.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.172.0, < 2.178.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"amazon-cdk","label":"Amazon CDK","category":"framework"}},"hubHref":"/vendor/amazon/aws_cloud_development_kit"},{"vendor":"aws","product":"cloud development kit command line interface","name":"Cloud Development Kit Command Line Interface","label":"cloud development kit command line interface","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.172.0, < 2.178.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.172.0, < 2.178.2","eol":null,"hubHref":"/vendor/aws/cloud_development_kit_command_line_interface"},{"vendor":"Npm","product":"aws-cdk","name":"aws-cdk","label":"aws-cdk","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/aws-cdk","purlType":"npm","versions":[{"text":"≥ 2.172.0, < 2.178.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.172.0, < 2.178.2","eol":null,"hubHref":null},{"vendor":"Npm","product":"cdk","name":"cdk","label":"cdk","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/cdk","purlType":"npm","versions":[{"text":"≥ 2.172.0, < 2.178.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.172.0, < 2.178.2","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-005/","label":"aws.amazon.com/security/security-bulletins/AWS-2025-005/","hostname":"aws.amazon.com","tags":["Vendor Advisory"]},{"url":"https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp","label":"github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp","hostname":"github.com","tags":["Third Party Advisory","WEB","Vendor Advisory"]},{"url":"https://github.com/aws/aws-cdk/releases/tag/v2.178.2","label":"github.com/aws/aws-cdk/releases/tag/v2.178.2","hostname":"github.com","tags":["Patch","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2598","label":"nvd.nist.gov/vuln/detail/CVE-2025-2598","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-005","label":"aws.amazon.com/security/security-bulletins/AWS-2025-005","hostname":"aws.amazon.com","tags":["WEB"]},{"url":"https://github.com/aws/aws-cdk","label":"github.com/aws/aws-cdk","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-03-21T14:14:29.040Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-14T18:38:18.174Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":23,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:51:19.974Z","stale":false,"partial":false}}