GHSA-w4h6-9gpx-7gm5MediumCVSS 3.3
Gitleaks through 8.30.1 contains an incorrect permission assignment vulnerability that allows...
🔗 CVE IDs covered (1)
📋 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.
🔗 References (6)
- https://nvd.nist.gov/vuln/detail/CVE-2026-124039
- https://github.com/gitleaks/gitleaks/issues/2299
- https://github.com/gitleaks/gitleaks
- https://github.com/gitleaks/gitleaks/blob/v8.30.1/cmd/root.go#L474
- https://www.vulncheck.com/advisories/gitleaks-through-8.30.1-world-readable-report-files-via-report-path
- https://github.com/advisories/GHSA-w4h6-9gpx-7gm5