Vulnerability · Published Aug 25, 2026 · Assigned by VulnCheck
CVE-2026-78675GitPython before 3.1.59 Local File Content Disclosure via .gitmodules
High 8.4
In plain English
A high-severity security flaw in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | py3-gitpython | 3.1.61-r0 | ALPINE-CVE-2026-78675 |
| Debian:12 | python-git | 3.1.30-1+deb12u3 | DEBIAN-CVE-2026-78675 |
| Debian:13 | python-git | 3.1.44-1+deb13u1 | DEBIAN-CVE-2026-78675 |
| Debian:14 | python-git | 3.1.61-1 | DEBIAN-CVE-2026-78675 |
| PyPI | gitpython | 3.1.59 | GHSA-7833-fr7j-v32q |
| PyPI | gitpython | 3.1.59 | PYSEC-2026-3785 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | 0 – before 3.1.59 |
Weakness: CWE-73 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- GitHub Security Advisory (GHSA-7833-fr7j-v32q) vendor-advisory
- VulnCheck Advisory: GitPython before 3.1.59 Local File Content Disclosure via .gitmodules third-party-advisory