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 以降へアップデートしてください。
.gitmodulesの解析時にmerge_includesが無効化されない脆弱性
GitPythonバージョン3.1.59以前
攻撃者が任意のファイルパスを含めることで、ローカルファイルの内容が開示される可能性があります。重要な情報が漏洩するリスクがあります。
GitPythonをバージョン3.1.59に更新してください。
該当の.gitmodulesファイルを手動で確認し、信頼できないincludeディレクティブを削除する。
リポジトリ内の.gitmodulesファイルに信頼できないincludeディレクティブが含まれていないか確認する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pipgitpython |
< 3.1.59→ 3.1.59 |
3.1.59 |
| PyPIgitpython |
< 3.1.59→ 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.
- Alpine Linux ALPINE-CVE-2026-78675 py3-gitpython Fix available
- Debian DEBIAN-CVE-2026-78675 python-git Fix available
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
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com