CVE-2026-124039 Gitleaks through 8.30.1 World-Readable Report Files via --report-path
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-124039?
CVE-2026-124039 is a medium-severity vulnerability in gitleaks, published on 6 Nov 2026.
Official description
Gitleaks through 8.30.1 contains an incorrect permission assignment vulnerability that allows local users to read scan reports because cmd/root.go creates the --report-path file with os.Create and default permissions. Unless --redact is passed, other local users on shared hosts or CI runners can read plaintext secrets and matching lines to obtain discovered credentials.
Weakness: CWE-732
Which versions are affected by CVE-2026-124039?
How do I fix CVE-2026-124039?
No fix has been published for CVE-2026-124039 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-124039 being exploited?
There is no known exploitation of CVE-2026-124039 in the wild and no public exploit code.
Sources
Also known as GHSA-w4h6-9gpx-7gm5.