NetSight
high8.4

CVE-2026-78675

GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file…

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
pipGitPython<= 3.1.583.1.59

Affected products

VendorProductAffected versions
Gitpython ProjectGitpython
before 3.1.59

Weakness classification

References