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.
Published: 2026-11-06
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: Local information disclosure via world‑readable report files
Action: Patch immediately
AI Analysis

Impact

Gitleaks up to version 8.30.1 creates the file specified by the --report-path flag with default file permissions, meaning the file is readable by any local user. Because the report contains plaintext secrets and the lines that matched it, other users on shared hosts or CI runners can read credentials and related context. The vulnerability is a classic example of an incorrect permissions weakness that leads to local disclosure of sensitive data rather than a remote attack vector.

Affected Systems

The vulnerability affects the Gitleaks tool supplied by the gitleaks project, specifically any installation of version 8.30.1 that uses the --report-path option to output scan results. Versions earlier than 8.30.1 may also be vulnerable if the same code path exists, but the advisory explicitly references 8.30.1.

Risk and Exploitability

With a CVSS score of 4.8 the issue is considered moderate. No EPSS data is provided and it is not currently listed in CISA’s KEV catalog, indicating that no widespread exploits are known. Attackers would need local access or shared user rights to the host where Gitleaks runs; the fix is a local privilege escalation scenario that relies on reading the report file after the scan completes. The risk is amplified on multi‑user systems where the report directory is shared, but it does not allow remote exploitation or privilege escalation beyond local filesystem access.

Generated by OpenCVE AI on November 6, 2026 at 20:35 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitleaks to v8.30.2 or later where the permission calculation for --report-path is corrected.
  • If an upgrade is not immediately feasible, ensure that the --redact flag is passed so that secrets are removed from the report file, or run the scan inside a confined environment where the report directory is write‑only to the invoking user.
  • After the scan completes, explicitly delete or move the report file, or change its permissions to deny other local users reading it.

Generated by OpenCVE AI on November 6, 2026 at 20:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Gitleaks
Gitleaks gitleaks
Vendors & Products Gitleaks
Gitleaks gitleaks

Fri, 06 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
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.
Title Gitleaks through 8.30.1 World-Readable Report Files via --report-path
Weaknesses CWE-732
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 4.8, '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'}


Subscriptions

Gitleaks Gitleaks
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-06T19:14:48.275Z

Reserved: 2026-11-06T19:08:41.309Z

Link: CVE-2026-124039

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T20:17:22.037

Modified: 2026-11-06T20:17:22.037

Link: CVE-2026-124039

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T20:45:07Z

Weaknesses
  • CWE-732

    Incorrect Permission Assignment for Critical Resource