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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-11-25 · Modified: 2025-11-25
- Aliases: CGA-572v-gpqp-7rwc, CGA-58cx-x5qc-4cw4, CGA-5cj2-9j3f-hc97, CGA-9fp9-q59r-7hx9, GHSA-6gxw-85q2-q646, GO-2025-4160, CGA-3j2w-2234-j6vg, CGA-p89j-vffr-xwjj, CGA-vf93-wcjm-cg79, CGA-vpcm-xvrp-w9mf, CGA-w825-9m7j-v2hm, CGA-wggc-chmq-ff3c, ALPINE-CVE-2025-65965
- Record: https://cvemate.com/vulnerability/CVE-2025-65965 · JSON: https://cvemate.com/vulnerability/CVE-2025-65965/json

## 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.
```

## Signals

- CVSS: 8.2 high (v4.0, CVE.org) 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
- EPSS: 0.16%, percentile 5.323%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- anchore grype: ≥ 0.68.0, \< 0.104.1
- alpine grype (Alpine Linux): \< 0.104.1-r0
- chainguard cg (Chainguard): \< 0.2.180-r0
- chainguard chainctl (Chainguard): \< 0.2.180-r0
- chainguard docker-credential-cgr (Chainguard): \< 0.2.180-r0
- chainguard k9s (Chainguard): \< 0.50.16-r4
- chainguard zarf (Chainguard): \< 0.67.0-r0
- wolfi k9s (Wolfi): \< 0.50.16-r4
- wolfi zarf (Wolfi): \< 0.67.0-r0
- github.com/anchore grype (Go): ≥ 0.68.0, \< 0.104.1

## References

- <https://github.com/anchore/grype/security/advisories/GHSA-6gxw-85q2-q646>
- <https://github.com/anchore/grype/pull/3068>
- <https://github.com/anchore/grype/commit/39f7fa17af2739cafe9b27176d4a68f7c05f21c1>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65965.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-65965>
- <https://github.com/anchore/grype/commit/c99f79de49a58dc16d7fd8f35160b169b87db9de>
- <https://github.com/anchore/grype>
- <https://security.alpinelinux.org/vuln/CVE-2025-65965>

---

Data as of 2026-12-05T18:17:26.411Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
