Gitleaks through 8.30.1 World-Readable Report Files via --report-path
- State
- Published
- Severity
- 4.8 Medium
- Published
- Nov 6, 2026
- Updated
- Nov 9, 2026
- Reserved
- Nov 6, 2026
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.
| Product | Versions |
|---|---|
| gitleaks gitleaks | 8.30.1 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | VulnCheck | |
| 3.1 | 3.3 Low | VulnCheck |
Weaknesses
- CWE-732 Incorrect Permission Assignment for Critical Resource
References
- GitHub Issue #2299Issue Tracker
- https://github.com/gitleaks/gitleaksProduct Page
- https://github.com/gitleaks/gitleaks/blob/v8.30.1/cmd/root.go#L474Technical Details
- VulnCheck Advisory: Gitleaks through 8.30.1 World-Readable Report Files via --report-pathThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.