Skip to content

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

HighCVSS 8.2 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

4 packages: 3 fixed.

PackageAffectedFixed inStatus
alpine/grype(Alpine v3.23) < 0.104.1-r0 0.104.1-r0 Fixed
alpine/grype(Alpine v3.24) < 0.104.1-r0 0.104.1-r0 Fixed
anchore github.com/anchore/grype(Go) >= 0.68.0, < 0.104.1 0.104.1 Fixed
anchore github.com/anchore/grype = >= 0.68.0, < 0.104.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
anchore github.com/anchore/grype(Go) >= 0.68.0, < 0.104.1 0.104.1
anchore github.com/anchore/grype = >= 0.68.0, < 0.104.1 No fix listed
alpine/grype(Alpine:v3.23) < 0.104.1-r0 0.104.1-r0
alpine/grype(Alpine:v3.24) < 0.104.1-r0 0.104.1-r0

References