CVE-2026-124039

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

Published Nov 6, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Gitleaks up to version 8.30.1 creates the file specified by the --report-path flag with default permissions, which allows any local user on the same host to read the scan results. These results contain plaintext secrets and the lines that matched them, so other local users can obtain previously discovered credentials. The weakness is an improper file permission setting (CWE‑276 and CWE‑732).

Affected Systems

The vulnerability affects the Gitleaks tool supplied by the gitleaks project. All installations using version 8.30.1 and the --report-path option are impacted. Earlier or later versions may also be affected if the same code path exists, but only 8.30.1 is explicitly referenced.

Risk and Exploitability

The CVSS score of 4.8 labels it as moderate. The EPSS score is < 1 %, indicating a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Attackers would need local access or shared user rights to the system where Gitleaks writes its report. The exploit requires no special network exposure or privilege escalation; it simply reads a file that is world‑readable. In multi‑user environments or shared CI runners, the risk is amplified, but no remote attack is possible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Use the --redact flag when running Gitleaks so that secrets are omitted from the report file.
  • Execute scans in an environment where the report directory is protected by restrictive permissions, for example create a temporary directory with permission 0700 and point --report-path there.
  • After a scan completes, delete the report file or change its permissions so that other local users cannot read it.
  • Apply any vendor patch or upgrade to a release that corrects the permission calculation for --report-path, if such a release is available.

Generated by OpenCVE AI on November 15, 2026 at 09:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitleaks
Gitleaks gitleaks
Vendors & Products Gitleaks
Gitleaks gitleaks
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'}

Weaknesses
  • CWE-276

    Incorrect Default Permissions

  • CWE-732

    Incorrect Permission Assignment for Critical Resource

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 1:17 PM
Reserved
Nov 6, 2026, 7:08 PM
Status
Awaiting Analysis
Published
Nov 6, 2026, 8:17 PM
Modified
Nov 12, 2026, 9:30 PM
Severity
Low
Public date
Nov 6, 2026, 7:14 PM