Skip to content
CVE PROGRAM SOURCE RECORD4.8 Medium

CVE-2026-124039

Gitleaks through 8.30.1 World-Readable Report Files via --report-path

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

gitleaks gitleaks

Default version status: unaffected

  • 0 to ≤ 8.30.1affected
pkg:golang/github.com/zricethezav/gitleaks/v8

References