PYSEC-2026-3785

At a glance

Published
Updated
CVE
CVE-2026-78675
Aliases
GHSA-7833-fr7j-v32q
CVSS_V3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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 packages

PackageVersions
PyPI · gitpythonintroduced 0, fixed 3.1.59

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database