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.
Metrics
CVSS 3.1 7.8/10
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | < 3.1.59 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32qExploit, Vendor Advisory, Mitigation
- https://www.vulncheck.com/advisories/gitpython-before-local-file-content-disclosure-via-gitmodulesThird Party Advisory
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32qExploit, Vendor Advisory, Mitigation
Timeline
- Published
- Aug 25, 2026
- Last modified
- Oct 12, 2026
- NVD status
- Analyzed