Local Permission Assignment Flaw in Gitleaks Affects Sensitive Data Exposure
CVE-2026-124039

4.8MEDIUM

Key Information:

Vendor

Gitleaks

Status
Vendor
CVE Published:
6 November 2026

What is CVE-2026-124039?

Gitleaks versions prior to 8.30.1 exhibit an incorrect permission assignment vulnerability, presenting a risk where local users can access sensitive scan reports. The issue arises due to the way the --report-path file is created using os.Create with default permissions. If the --redact option is not utilized, this allows other local users on shared hosts or CI runners to access plaintext secrets and associated data, potentially leading to unauthorized credential exposure. Users are advised to review their configuration and ensure that appropriate options are in place to mitigate this risk.

Affected Version(s)

gitleaks 0 <= 8.30.1

References

CVSS V4

Score:
4.8
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

George Chen
.