CyberRota Analysis
AI-GeneratedGitleaks versions prior to 8.30.1 are vulnerable to a template injection flaw that enables attackers to manipulate report templates, potentially exposing sensitive environment variables. By exploiting non-hermetic Sprig template functions, adversaries can extract credentials, tokens, and API keys, exfiltrating this data via DNS queries. Organizations using Gitleaks for secret scanning should prioritize updating to the latest version to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.