CVE-2026-78675
GitPython before 3.1.59 fails to disable merge_includes when …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q
- www.vulncheck.com/advisories/gitpython-before-local-file-content-disclosure-via-gitmodules
- nvd.nist.gov/vuln/detail/CVE-2026-78675
- github.com/gitpython-developers/GitPython/pull/2211
- github.com/gitpython-developers/GitPython/commit/ef7568e3b317ce617eacda39b8b54dcdff8c3b5c
- github.com/gitpython-developers/GitPython/releases/tag/3.1.59
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3785.yaml
- github.com/advisories/GHSA-7833-fr7j-v32q
- nvd.nist.gov/vuln/detail/CVE-2026-78675
- cve.org/CVERecord?id=CVE-2026-78675
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.