gitpython projectのgitpythonにおける引数の挿入または変更に関する脆弱性
| Title |
gitpython projectのgitpythonにおける引数の挿入または変更に関する脆弱性
|
| Summary |
GitPythonはGitリポジトリと対話するために使用されるPythonライブラリです。バージョン3.1.47以前では、_clone()関数がmulti_optionsを元のリストとして検証し、その後shlex.split(" ".join(multi_options))を実行していました。"--branch main --config core.hooksPath=/x"のような文字列は検証を通過します(--branchで始まるため)が、分割後は["--branch", "main", "--config", "core.hooksPath=/x"]となります。Gitはこのconfigを適用し、クローン中に攻撃者のフックを実行してしまう問題がありました。この問題はバージョン3.1.47で修正されました。
|
| Possible impacts |
当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
May 7, 2026, midnight |
| Registration Date |
May 11, 2026, 10:57 a.m. |
| Last Update |
May 11, 2026, 10:57 a.m. |
|
CVSS3.0 : 緊急
|
| Score |
9.8
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected System
| gitpython project |
|
gitpython 3.1.47 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年05月11日] 掲載 |
May 11, 2026, 10:57 a.m. |
NVD Vulnerability Information
CVE-2026-42284
| Summary |
GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.
|
| Publication Date |
May 8, 2026, 4:16 a.m. |
| Registration Date |
May 9, 2026, 4:10 a.m. |
| Last Update |
May 9, 2026, 8:16 a.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* |
|
|
|
3.1.47 |
Related information, measures and tools
Common Vulnerabilities List