Skip to main content
← All vulnerabilities
CVE-2026-63728

Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.30.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • gitleaks gitleaks

    fixed in 8.30.1

References 4

GitHub · gitleaks/gitleaks

fatihhcelik.github.io

vulncheck.com