CVE-2026-63728
Gitleaks prior to 8.30.1 contains a template injection …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- fatihhcelik.github.io/posts/gitleaks-abusing-sprig-for-exfiltration/#the-fix
- github.com/gitleaks/gitleaks
- github.com/gitleaks/gitleaks/commit/83d9cd684c87d95d656c1458ef04895a7f1cbd8e
- www.vulncheck.com/advisories/gitleaks-secret-exfiltration-via-non-hermetic-sprig-template-
- nvd.nist.gov/vuln/detail/CVE-2026-63728
- cve.org/CVERecord?id=CVE-2026-63728
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.