# CVE-2026-124039: Gitleaks through 8.30.1 World-Readable Report Files via --report-path

- Severity: Medium 4.8 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-11-06T19:14:48.275Z
- Modified: 2026-11-12T21:30:23.870Z
- Weaknesses: CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gitleaks gitleaks: up to 8.30.1

## Every score

- VulnCheck: CVSS:4.0 4.8 Medium `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`
- VulnCheck: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-124039](https://www.cve.org/CVERecord?id=CVE-2026-124039), CVE Terms of Use, modified 2026-11-09
- NVD: [CVE-2026-124039](https://nvd.nist.gov/vuln/detail/CVE-2026-124039), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-124039 · Whole record: https://cve.day/CVE-2026-124039.json · Rebuilt by cve.day 2026-11-25T22:59:49.318Z
