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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q Exploit, Vendor Advisory, Mitigation
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q Exploit, Vendor Advisory, Mitigation
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.6 · gitpython_projectNVD modified 2026-10-12 15:10
Affected (CPE criteria) 1
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
References 3
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q Exploit, Vendor Advisory, Mitigation
- https://www.vulncheck.com/advisories/gitpython-before-local-file-content-disclosure-via-gitmodules Third Party Advisory
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q Exploit, Vendor Advisory, Mitigation