Skip to main content

Gitleaks EUVDEUVD-2026-118440

| CVE-2026-124039 MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-11-06 VulnCheck GHSA-w4h6-9gpx-7gm5
4.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Hold a local account on a shared host/CI runner
  2. Exploit
    Locate world-readable Gitleaks --report-path output
  3. Execution
    Read plaintext secrets and matching lines
  4. Impact
    Reuse harvested credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
Exploitation Conditions

Exploitation requires that a Gitleaks scan was run with an output report (--report-path) and WITHOUT the --redact flag, so that cmd/root.go writes plaintext secrets and matching lines to a file created via os.Create with default (world-readable) permissions. The attacker must be a separate local user with filesystem read access on the same shared host or CI runner where the report resides. Limiting factors: no remote/network exploitation is possible (AV:L); it is a non-issue on single-user systems; passing --redact or restricting the report directory/umask prevents disclosure; and exposure is bounded to the secrets contained in that specific scan report.

Impact

This is a genuine but environment-gated confidentiality issue rather than a broadly urgent threat. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:L) and the 4.8 score make clear the flaw is local-only and requires an existing low-privileged account, which sharply limits blast radius compared to a network-exploitable bug. The vuln.today decision label is 'this_month' (not act_now or emergency), there is no CISA KEV listing and no EPSS score supplied, so there is no signal of active or widespread exploitation - consistent with a design/permissions weakness that must be opportunistically harvested on a shared host. No POC/Exploit field is provided; the references include a GitHub issue (#2299), the source line, and a VulnCheck advisory, so a public technical disclosure exists but no working exploit code is confirmed. The one place signals could be read as conflicting is severity-vs-impact: the disclosed data are plaintext secrets and credentials, which many analysts would rate as high confidentiality impact, yet the vendor/NVD vector rates it VC:L - worth noting when prioritizing. Overall: real and worth patching this cycle for anyone running Gitleaks on multi-tenant CI runners or shared hosts, but not an emergency and irrelevant on single-user systems.

Exploit ScenarioDerived

On a shared CI runner or multi-user host, a developer runs a Gitleaks scan with --report-path but without --redact; cmd/root.go creates the report via os.Create with default (world-readable) permissions. A separate low-privileged local user on the same machine then simply opens that report file and reads the plaintext secrets and matching source lines to obtain the discovered credentials. No working exploit code is confirmed in the sources - only a public advisory and issue.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Gitleaks through 8.30.1 writes the file designated by --report-path using os.Create, which applies default permissions (typically 0644 after umask), so any other local user on the same shared host or CI runner can read the scan report. Because the report contains plaintext discovered secrets and their matching source lines whenever --redact is not supplied, a low-privileged local user with filesystem read access to that path can harvest credentials from it. Exploitation is strictly local, requires that a scan was run with an output report and without --redact, and is a non-issue on single-user systems; no public exploit code was identified at time of analysis.

RemediationAI

No vendor-released patch or fixed version was identified at time of analysis, so the practical fix is to control the permissions of the generated report and to stop writing plaintext secrets to it: rerun scans with the --redact flag so matched secret values are removed from the output (side effect: the report becomes less useful for triage since the actual credential is masked), and where redaction is unacceptable, set a restrictive umask such as 077 in the scanning shell or CI job before invoking Gitleaks and write --report-path into a directory created with mode 0700 (side effect: the umask applies to every file the job creates, which can break other tooling that expects group-readable artifacts). Existing reports should be treated as compromised - chmod 600 or delete them, and rotate any credentials the scans surfaced. On shared CI runners, running scans under a dedicated per-job user and isolating or expiring workspace/artifact directories containing reports limits who can read them. Monitor https://github.com/gitleaks/gitleaks/issues/2299 and https://www.vulncheck.com/advisories/gitleaks-through-8.30.1-world-readable-report-files-via-report-path for an upstream permission fix before the next release.

Affected VersionsENISA

gitleaks 0 ≤8.30.1

Affected Packages

euvd gitleaks no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gitleaks is a Go-based secret scanner for git repositories, directories and stdin. In cmd/root.go (line 474 of the v8.30.1 tag), the report writer is opened with os.Create, which creates files with mode 0666 before the process umask is applied - on typical systems yielding 0644, i.e. readable by every local account. This is the CWE-732 (Incorrect Permission Assignment for Critical Resource) class: the file itself is a critical resource because, absent the --redact flag, Gitleaks serializes the raw matched secret along with surrounding source lines. The affected CPE is cpe:2.3:a:gitleaks:gitleaks:*:*:*:*:*:*:*:* across all releases through 8.30.1. The issue is purely a file-permission/disclosure defect with a local attack vector (AV:L, PR:L, UI:N), no integrity or availability impact, and no network reachability; the assessed CVSS:3.1 vector is AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, which rates confidentiality impact higher than the published CVSS:4.0 base score of 4.8 because the disclosed content is live credential material. Exposure is bounded to the secrets contained in that one report file, and the trigger is a permission decision at report-creation time rather than any flaw in the scanning or regex engine.

Know when Gitleaks gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 4.8 MEDIUM
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
vuln.today AI 5.5 MEDIUM

Local account needed to read the file so AV:L/PR:L; no interaction and reliably readable so AC:L/UI:N; disclosed data are plaintext credentials so C:H, no integrity/availability impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 3.3 LOW

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
High
widely used open-source secret scanner across CI/CD pipelines and dev hosts
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy