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 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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

History

12 Oct 2026, 15:10

Type Values Removed Values Added
Summary
  • (es) GitPython anterior a la versión 3.1.59 no deshabilita merge_includes al analizar .gitmodules, permitiendo a los atacantes divulgar contenido de archivos locales al incluir rutas de archivo arbitrarias a través de directivas [include]. Los atacantes pueden elaborar un archivo .gitmodules malicioso con directivas include que apunten a archivos sensibles; cuando se accede a repo.submodules, GitConfigParser genera MissingSectionHeaderError incrustando la primera línea del archivo objetivo textualmente en el mensaje de excepción.

Information

Published : 2026-08-25 02:16

Updated : 2026-10-12 15:10


NVD link : CVE-2026-78675

Mitre link : CVE-2026-78675

CVE.ORG link : CVE-2026-78675


JSON object : View

Products Affected

gitpython_project

  • gitpython
CWE
CWE-73

External Control of File Name or Path