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.