Skip to content
CVE PROGRAM SOURCE RECORD8.6 High

CVE-2026-78675

GitPython before 3.1.59 Local File Content Disclosure via .gitmodules

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

gitpython-developers GitPython

Default version status: unaffected

  • 0 to < 3.1.59affected
  • 3.1.59unaffected
pkg:pypi/gitpython

References