# CVE-2026-78675: GitPython before 3.1.59 Local File Content Disclosure via .gitmodules

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.1.59 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-25 · Modified: 2026-10-08
- Aliases: GHSA-7833-fr7j-v32q, PYSEC-2026-3785, DEBIAN-CVE-2026-78675, CGA-87xj-6pvj-cp6w, ALPINE-CVE-2026-78675
- Record: https://cvemate.com/vulnerability/CVE-2026-78675 · JSON: https://cvemate.com/vulnerability/CVE-2026-78675/json

## Description

```text
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.
```

## Signals

- CVSS: 8.6 high (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.166%, percentile 6.054%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine py3-gitpython (Alpine Linux): \< 3.1.61-r0
- chainguard mlflow (Chainguard): \< 3.16.0-r0
- wolfi mlflow (Wolfi): \< 3.16.0-r0
- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.61-1
- gitpython\_project gitpython: \< 3.1.59
- gitpython-developers gitpython: \< 3.1.59
- PyPI gitpython (PyPI): \< 3.1.59

## 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://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>
- <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://security-tracker.debian.org/tracker/CVE-2026-78675>
- <https://security.alpinelinux.org/vuln/CVE-2026-78675>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78675.json>

---

Data as of 2026-12-05T04:47:46.241Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
