Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHold a local account on a shared host/CI runner
-
ExploitLocate world-readable Gitleaks --report-path output
-
ExecutionRead plaintext secrets and matching lines
-
ImpactReuse 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-118440
GHSA-w4h6-9gpx-7gm5
NVD
CVE.org
EPSS
Exploit-DB