# CVE-2025-65965: Grype has a credential disclosure vulnerability in Grype JSON output

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-11-25T14:18:46.000Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-6gxw-85q2-q646, GO-2025-4160
- Related: CGA-cgr5-gq3c-hmmv
- Weaknesses: CWE-212
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- anchore grype: >= 0.68.0, < 0.104.1
- github.com/anchore/grype (Go): from 0.68.0 before 0.104.1

## Every score

- GitHub_M: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/anchore/grype/security/advisories/GHSA-6gxw-85q2-q646> (advisory, web)
- <https://github.com/anchore/grype/pull/3068> (fix, web)
- <https://github.com/anchore/grype/commit/39f7fa17af2739cafe9b27176d4a68f7c05f21c1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-65965> (advisory)
- <https://github.com/anchore/grype/commit/c99f79de49a58dc16d7fd8f35160b169b87db9de> (fix, web)
- <https://github.com/anchore/grype> (package)

## Sources

- CVE List: [CVE-2025-65965](https://www.cve.org/CVERecord?id=CVE-2025-65965), CVE Terms of Use, modified 2025-11-25
- GitHub Advisory Database: [GHSA-6gxw-85q2-q646](https://github.com/advisories/GHSA-6gxw-85q2-q646), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-4160](https://pkg.go.dev/vuln/GO-2025-4160), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-65965](https://nvd.nist.gov/vuln/detail/CVE-2025-65965), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-65965 · Whole record: https://cve.day/CVE-2025-65965.json · Rebuilt by cve.day 2026-11-25T22:59:08.010Z
