GitPython before 3.1.59 fails to disable merge_includes...
High severity
Unreviewed
Published
Aug 25, 2026
to the GitHub Advisory Database
•
Updated Aug 25, 2026
Description
Published by the National Vulnerability Database
Aug 25, 2026
Published to the GitHub Advisory Database
Aug 25, 2026
Last updated
Aug 25, 2026
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.
References