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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gitleaks | gitleaks | ≤ 8.30.1 | — |
References
- GitHub Issue #2299 issue-tracking
- https://github.com/gitleaks/gitleaks product
- https://github.com/gitleaks/gitleaks/blob/v8.30.1/cmd/root.go#L474 technical-description
- VulnCheck Advisory: Gitleaks through 8.30.1 World-Readable Report Files via --report-path third-party-advisory