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

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T01:30:32.739Z
- Modified: 2026-10-12T15:10:00.207Z
- Also known as: GHSA-7833-fr7j-v32q, PYSEC-2026-3785
- Weaknesses: CWE-73, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: before 3.1.59 (not affected: 3.1.59)
- gitpython (PyPI): before 3.1.59
- gitpython_project gitpython: before 3.1.59

## Every score

- VulnCheck: CVSS:4.0 8.6 High `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`
- VulnCheck: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-before-local-file-content-disclosure-via-gitmodules> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-78675> (advisory)
- <https://github.com/gitpython-developers/GitPython/pull/2211> (web)
- <https://github.com/gitpython-developers/GitPython/commit/ef7568e3b317ce617eacda39b8b54dcdff8c3b5c> (web)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.59> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3785.yaml> (web)

## Sources

- CVE List: [CVE-2026-78675](https://www.cve.org/CVERecord?id=CVE-2026-78675), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-7833-fr7j-v32q](https://github.com/advisories/GHSA-7833-fr7j-v32q), CC-BY-4.0, modified 2026-09-23
- NVD: [CVE-2026-78675](https://nvd.nist.gov/vuln/detail/CVE-2026-78675), Public domain, modified 2026-10-12
- PyPA Advisory Database: [PYSEC-2026-3785](https://osv.dev/vulnerability/PYSEC-2026-3785), CC-BY-4.0, modified 2026-09-03

---

Page: https://cve.day/CVE-2026-78675 · Whole record: https://cve.day/CVE-2026-78675.json · Rebuilt by cve.day 2026-11-25T22:59:35.097Z
