CVE-2026-63728
8.1high
Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature
- Severity
- 8.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| gitleaks gitleaks | before 8.30.1 | CVE List |
All scores
| VulnCheck | 8.1high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N |
| VulnCheck | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-63728 changed 2026-09-24 | CVE Terms of Use |
| NVD | CVE-2026-63728 changed 2026-07-22 | Public domain |