What’s Vulnerable › Vulnerabilities
CVE-2026-78675: GitPython before 3.1.59 Local File Content Disclosure via .gitmodules
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-08-25 · updated 2026-10-12
- Weakness: CWE-73
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.
Affected products
- gitpython-developers GitPython: before 3.1.59 — fixed in 3.1.59
How to fix
Upgrade to a fixed version: gitpython-developers GitPython 3.1.59. Check the vendor advisory for mitigations.
References
- 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
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q
Get alerted when CVE-2026-78675 or the next vulnerability affects your stack