{"id":"CVE-2025-65965","published":"2025-11-25T19:36:11Z","modified":"2025-11-25T20:08:48Z","title":"Grype has a credential disclosure vulnerability in Grype JSON output","vendor":"anchore","product":"grype","tier":"tail","description":{"text":"Grype is a vulnerability scanner for container images and filesystems. A credential disclosure vulnerability was found in Grype, affecting versions 0.68.0 through 0.104.0. If registry credentials are defined and the output of grype is written using the --file or --output json=<file> option, the registry credentials will be included unsanitized in the output file. This issue has been patched in version 0.104.1. Users running affected versions of grype can work around this vulnerability by redirecting stdout to a file instead of using the --file or --output options.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0016,"percentile":0.05242,"provenance":"source"},"cwes":[{"id":"CWE-212","name":"Improper Removal of Sensitive Information Before Storage or Transfer"}],"references":[{"url":"https://github.com/anchore/grype/security/advisories/GHSA-6gxw-85q2-q646","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/anchore/grype/pull/3068","tags":["x_refsource_MISC"]},{"url":"https://github.com/anchore/grype/commit/39f7fa17af2739cafe9b27176d4a68f7c05f21c1","tags":["x_refsource_MISC"]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.05},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"anchore","affectedVersions":[{"vendor":"anchore","product":"grype","versions":[">= 0.68.0, < 0.104.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-11-25T20:08:41.560826Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/anchore/grype","vulnerableRanges":[">=0.68.0, <0.104.1"],"patched":["0.104.1"],"from":["GHSA-6gxw-85q2-q646","GO-2025-4160"],"provenance":"source"}],"summary":{"text":"Grype, Anchore's vulnerability scanner for container images and filesystems, has a credential disclosure flaw in its JSON output: when registry credentials are configured and results are written with the --file or --output json=<file> option, those credentials are written unsanitized into the output file. An attacker with local access to the machine, and without needing any authentication or user interaction, can read the resulting file to obtain the registry credentials; the flaw requires that registry credentials are defined and that output is written to a file using one of those options.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:38Z"},"euvd":{"id":"EUVD-2025-199596","exploited":false,"provenance":"source"}}