high8.4
CVE-2026-78675
GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file…
Impact
GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file paths via [include] directives. Attackers can craft a malicious .gitmodules file with include directives pointing to sensitive files; when repo.submodules is accessed, GitConfigParser raises MissingSectionHeaderError embedding the target file's first line verbatim in the exception message.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | GitPython | <= 3.1.58 | 3.1.59 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Gitpython Project | Gitpython | before 3.1.59 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-7833-fr7j-v32q
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q
- https://nvd.nist.gov/vuln/detail/CVE-2026-78675
- https://github.com/gitpython-developers/GitPython/pull/2211
- https://github.com/gitpython-developers/GitPython/commit/ef7568e3b317ce617eacda39b8b54dcdff8c3b5c
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.59
- https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3785.yaml
- https://www.vulncheck.com/advisories/gitpython-before-local-file-content-disclosure-via-gitmodules