CVE-2025-2598

Source
https://cve.org/CVERecord?id=CVE-2025-2598
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2598.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-2598
Aliases
Published
2025-03-21T14:14:29.040Z
Modified
2026-08-12T03:51:42.107064817Z
Severity
  • 5.7 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
AWS CDK CLI prints AWS credentials retrieved by custom credential plugins
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-497"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2598.json",
    "cna_assigner": "AMZN"
}
References

Affected packages

Git / github.com/aws/aws-cdk

Affected ranges

Type
GIT
Repo
https://github.com/aws/aws-cdk
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "2.172.0"
        },
        {
            "fixed": "2.178.2"
        }
    ],
    "cpe": "cpe:2.3:a:amazon:aws_cloud_development_kit:*:*:*:*:*:*:*:*",
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v2.*
v2.172.0
v2.173.0
v2.173.1
v2.173.2
v2.173.3
v2.173.4
v2.174.0
v2.174.1
v2.175.0
v2.175.1
v2.176.0
v2.177.0
v2.178.0
v2.178.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2598.json"