Skip to content
High 8.4 Web Application

Vulnerability in gitpython

CVE-2026-78675 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

GitPython の 3.1.59 より前のバージョンでは、.gitmodules に細工された include 指定を含めることで、攻撃者が任意のローカルファイルの先頭行を読み取れる可能性があります。repo.submodules を参照した際の例外メッセージにファイルの内容が含まれます。対策として 3.1.59 以降へアップデートしてください。

What is the problem

.gitmodulesの解析時にmerge_includesが無効化されない脆弱性

Affected scope

GitPythonバージョン3.1.59以前

Severity

攻撃者が任意のファイルパスを含めることで、ローカルファイルの内容が開示される可能性があります。重要な情報が漏洩するリスクがあります。

How to fix

GitPythonをバージョン3.1.59に更新してください。

Workaround

該当の.gitmodulesファイルを手動で確認し、信頼できないincludeディレクティブを削除する。

Detection

リポジトリ内の.gitmodulesファイルに信頼できないincludeディレクティブが含まれていないか確認する。

Affected packages

PackageAffected → Fixed
pipgitpython
< 3.1.59→ 3.1.59
PyPIgitpython
< 3.1.59→ 3.1.59

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details