Skip to main content
← All vulnerabilities
CVE-2026-78675GHSA-7833-FR7J-V32QPYSEC-2026-3785

GitPython before 3.1.59 Local File Content Disclosure via .gitmodules

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.59
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.1.59

  • gitpythonPyPI

    fixed in 3.1.59

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com