{"id":"CVE-2026-124039","state":"PUBLISHED","title":"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.","publishedAt":"2026-11-06T19:14:48.275Z","updatedAt":"2026-11-06T19:14:48.275Z","severity":{"score":4.8,"label":"Medium","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["gitleaks gitleaks"],"affected":[{"vendor":"gitleaks","product":"gitleaks","packageURL":"pkg:golang/github.com/zricethezav/gitleaks/v8","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"8.30.1","versionType":"semver"}]}],"references":["https://github.com/gitleaks/gitleaks/issues/2299","https://github.com/gitleaks/gitleaks","https://github.com/gitleaks/gitleaks/blob/v8.30.1/cmd/root.go#L474","https://www.vulncheck.com/advisories/gitleaks-through-8.30.1-world-readable-report-files-via-report-path"],"weaknesses":["CWE-732"],"ingestedAt":"2026-11-06T19:20:06.668Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/124xxx/CVE-2026-124039.json","commit":"64a2fc3fb51a0d352ce39f4daed428c7f43508b1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-124039","state":"PUBLISHED","datePublished":"2026-11-06T19:14:48.275Z","dateUpdated":"2026-11-06T19:14:48.275Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-06T19:08:41.309Z"},"containers":{"cna":{"title":"Gitleaks through 8.30.1 World-Readable Report Files via --report-path","descriptions":[{"lang":"en","value":"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":[{"vendor":"gitleaks","product":"gitleaks","packageURL":"pkg:golang/github.com/zricethezav/gitleaks/v8","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"8.30.1","versionType":"semver"}]}],"references":[{"url":"https://github.com/gitleaks/gitleaks/issues/2299","tags":["issue-tracking"],"name":"GitHub Issue #2299"},{"url":"https://github.com/gitleaks/gitleaks","tags":["product"]},{"url":"https://github.com/gitleaks/gitleaks/blob/v8.30.1/cmd/root.go#L474","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/gitleaks-through-8.30.1-world-readable-report-files-via-report-path","name":"VulnCheck Advisory: Gitleaks through 8.30.1 World-Readable Report Files via --report-path","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":4.8,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":3.3,"baseSeverity":"LOW"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-732","lang":"en","description":"Incorrect Permission Assignment for Critical Resource","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-06T19:14:48.275Z"},"datePublic":"2026-10-09T00:00:00.000Z","credits":[{"lang":"en","value":"George Chen","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}