CVE-2026-63728
published high CVSS 4.0 · 8.1Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitleaks | — | gitleaks0 to < 8.30.1 · Other versions: affected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.3 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitleaks | gitleaks | 0 to < 8.30.1 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
4- Blog Post https://fatihhcelik.github.io/posts/gitleaks-abusing-sprig-for-exfiltration/#the-fix
- Product https://github.com/gitleaks/gitleaks
- Patch Commit https://github.com/gitleaks/gitleaks/commit/83d9cd684c87d95d656c1458ef04895a7f1cbd8e
- https://www.vulncheck.com/advisories/gitleaks-secret-exfiltration-via-non-hermetic-sprig-template-functions-in-report-template-feature
Provider assertions
2VulnCheck · cna
Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c9c48a4c5b4a51958ee71a3749794377b3553d3141f54c7df71edd0b1750a161
- Ingested
- 30 Sep 2026, 15:27:57 UTC
- Source record
- Official CVE record