PT-2025-48043 · Anchore · Grype

Published

2025-11-25

·

Updated

2025-12-15

·

CVE-2025-65965

CVSS v4.0

8.2

High

VectorAV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions Grype versions 0.68.0 through 0.104.0
Description Grype, a vulnerability scanner for container images and filesystems, contains a flaw where registry credentials can be improperly included in the output of a scan. This occurs when registry authentication is configured and the output is written to a file using the --file or --output json=<file> options. Credentials are set via the Grype configuration file or environment variables such as GRYPE REGISTRY AUTH USERNAME. The issue is also potentially triggered by a malformed Grype Template that includes the Descriptor.Registry.Auth fields.
Recommendations Versions 0.68.0 through 0.104.0: Redirect standard output to a file instead of using the --file or --output options. For example, use grype --output json alpine:latest > test.json instead of grype --output json=test.json alpine:latest.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2025-65965
GHSA-6GXW-85Q2-Q646
GO-2025-4160
SUSE-SU-2025:4395-1

Affected Products

Grype