CVE-2026-124039 Gitleaks through 8.30.1 World-Readable Report Files via --report-path
MediumCVSS 4.8
EPSS 0.10%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| zricethezav github.com/zricethezav/gitleaks/v8 | <= 8.30.1 | after 8.30.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| zricethezav github.com/zricethezav/gitleaks/v8 | <= 8.30.1 | No fix listed |
References
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2568467 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com product
- github.com technical-description
- GitHub Issue #2299 issue-tracking
- VulnCheck Advisory: Gitleaks through 8.30.1 World-Readable Report Files via --report-path third-party-advisory
- ENISA EUVD EUVD-2026-118440 third-party-advisory