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.
Severity (CVSS)
| Base score | 4.8 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-732 — Incorrect Permission Assignment for Critical Resource
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gitleaks | gitleaks | 0 to <=8.30.1 [affected] |
References
- https://github.com/gitleaks/gitleaks/issues/2299 (issue-tracking)
- https://github.com/gitleaks/gitleaks (product)
- https://github.com/gitleaks/gitleaks/blob/v8.30.1/cmd/root.go#L474 (technical-description)
- https://www.vulncheck.com/advisories/gitleaks-through-8.30.1-world-readable-report-files-via-report-path (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 07 Nov 2026 08:06 UTC.