# CVE-2026-63728: Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature

- Severity: High 8.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-20T23:32:34.476Z
- Modified: 2026-09-24T14:18:08.292Z
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- gitleaks gitleaks: before 8.30.1

## Every score

- VulnCheck: CVSS:4.0 8.1 High `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: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://fatihhcelik.github.io/posts/gitleaks-abusing-sprig-for-exfiltration/#the-fix> (exploit)
- <https://github.com/gitleaks/gitleaks> (product)
- <https://github.com/gitleaks/gitleaks/commit/83d9cd684c87d95d656c1458ef04895a7f1cbd8e> (patch)
- <https://www.vulncheck.com/advisories/gitleaks-secret-exfiltration-via-non-hermetic-sprig-template-functions-in-report-template-feature> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-63728](https://www.cve.org/CVERecord?id=CVE-2026-63728), CVE Terms of Use, modified 2026-09-24
- NVD: [CVE-2026-63728](https://nvd.nist.gov/vuln/detail/CVE-2026-63728), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-63728 · Whole record: https://cve.day/CVE-2026-63728.json · Rebuilt by cve.day 2026-11-25T22:59:29.300Z
