


Perceptive Security
SOC/SIEM Consultancy

GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file …
Published:
25 August 2026 at 00:00:00
Alert date:
25 August 2026 at 05:06:46
Source:
nvd.nist.gov
Supply Chain & Dependencies, Data Breach & Exfiltration
GitPython versions before 3.1.59 contain a vulnerability where the library fails to disable merge_includes when parsing .gitmodules files. This allows attackers to craft malicious .gitmodules files containing [include] directives that point to arbitrary local files. When repo.submodules is accessed, GitConfigParser raises a MissingSectionHeaderError that embeds the first line of the targeted file verbatim in the exception message, causing unintended local file content disclosure. The vulnerability can be exploited to expose sensitive files on the host system. A fix is available by upgrading to GitPython 3.1.59 or later. The issue has been documented in both the GitHub Security Advisory and VulnCheck advisories. It is classified as a high-severity information disclosure vulnerability affecting applications that use GitPython to process potentially untrusted repositories.
Technical details
Mitigation steps:
Affected products:
GitPython before 3.1.59
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-78675
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q
https://www.vulncheck.com/advisories/gitpython-before-local-file-content-disclosure-via-gitmodules
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
