CVE-2026-63728
Published:July 20, 2026
Updated:August 04, 2026
Gitleaks prior to 8.30.1 contains a template injection vulnerability that allows attackers who can supply or influence report templates to read arbitrary environment variables and exfiltrate sensitive data by leveraging non-hermetic Sprig template functions. Attackers can craft malicious report templates using the env, expandenv, and getHostByName functions to extract credentials, tokens, and API keys from the host process and exfiltrate them through DNS queries, including secrets discovered during the scan itself.
Affected Packages
https://github.com/gitleaks/gitleaks.git (GITHUB):
Affected version(s) >=v8.0.0 <v8.30.1Fix Suggestion:
Update to version v8.30.1github.com/zricethezav/gitleaks/v8 (GO):
Affected version(s) >=v8.0.0 <v8.30.1Fix Suggestion:
Update to version v8.30.1Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.1
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
ACTIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements Used in a Template Engine
EPSS
Base Score:
0.14