Skip to content
Heist/ feed
Back to feed
Medium

AWS CDK CLI prints AWS credentials retrieved by custom credential plugins

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-2598
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:37 UTC · Revision 1

Source evidence

AWS CDK CLI prints AWS credentials retrieved by custom credential plugins

core-osv · Original source

Published 21 Mar 2025, 14:14 UTC

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.

osv:CVE-2025-2598
Complete source record
{
  "id": "cf424eb2375153c097fa28fe0f756fee3b23f2e111b9c7d6c6662c89c9170d6e",
  "url": "https://osv.dev/vulnerability/CVE-2025-2598",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "AWS CDK CLI prints AWS credentials retrieved by custom credential plugins",
    "summary": "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.",
    "evidence": "osv:CVE-2025-2598",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-2598",
      "aliases": [
        "CVE-2025-2598",
        "GHSA-v63m-x9r9-8gqp"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/aws/aws-cdk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0f666c54f2353553448c2cf9d6b5a9456046baa2"
                },
                {
                  "fixed": "89c49cc98b08c87c1871e8fd93679cc271c1297e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2.172.0"
                      },
                      {
                        "fixed": "2.178.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "89c49cc98b08c87c1871e8fd93679cc271c1297e"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.178.2"
                  },
                  {
                    "cpe": "cpe:2.3:a:amazon:aws_cloud_development_kit:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.172.0"
                      },
                      {
                        "fixed": "2.178.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.178.1",
            "v2.178.0",
            "v2.177.0",
            "v2.176.0",
            "v2.175.1",
            "v2.175.0",
            "v2.174.1",
            "v2.174.0",
            "v2.173.4",
            "v2.173.3",
            "v2.173.2",
            "v2.173.1",
            "v2.173.0",
            "v2.172.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2598.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.308143874Z",
      "provider": "osv",
      "references": [
        "https://aws.amazon.com/security/security-bulletins/AWS-2025-005/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2598.json",
        "https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-2598",
        "https://github.com/aws/aws-cdk/releases/tag/v2.178.2"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-497"
        ],
        "cna_assigner": "AMZN",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2598.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-2598",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517421,
  "published_at": "2025-03-21T14:14:29.04+00:00"
}