High severity8.4NVD Advisory· Published Aug 25, 2026· Updated Sep 2, 2026
CVE-2026-78675
CVE-2026-78675
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GitPythonPyPI | < 3.1.59 | 3.1.59 |
Affected products
2- Range: <3.1.59
Patches
Vulnerability mechanics
References
8- github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32qnvdExploitVendor AdvisoryMitigationWEB
- github.com/advisories/GHSA-7833-fr7j-v32qghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-78675ghsaADVISORY
- www.vulncheck.com/advisories/gitpython-before-local-file-content-disclosure-via-gitmodulesnvdThird Party AdvisoryWEB
- github.com/gitpython-developers/GitPython/commit/ef7568e3b317ce617eacda39b8b54dcdff8c3b5cghsaWEB
- github.com/gitpython-developers/GitPython/pull/2211ghsaWEB
- github.com/gitpython-developers/GitPython/releases/tag/3.1.59ghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3785.yamlghsaWEB
News mentions
1- Gitpython: Five Vulnerabilities Including Critical Flaw Disclosed TogetherVypr Intelligence · Aug 25, 2026