gitpython projectのgitpythonにおけるOS コマンドインジェクションの脆弱性
| Title |
gitpython projectのgitpythonにおけるOS コマンドインジェクションの脆弱性
|
| Summary |
GitPythonはGitリポジトリとやり取りするために使用されるPythonライブラリです。バージョン3.1.30から3.1.47より前のバージョンでは、GitPythonは--upload-packや--receive-packのような危険なGitオプションをデフォルトでブロックしていましたが、同等のPythonキーワード引数であるupload_packおよびreceive_packはそのチェックを回避してしまいます。アプリケーションが攻撃者によって制御されたkwargsをRepo.clone_from()、Remote.fetch()、Remote.pull()、またはRemote.push()に渡すと、allow_unsafe_optionsがデフォルトのFalseのままであっても任意のコマンド実行が可能になる危険性があります。この問題はバージョン3.1.47で修正されました。
|
| Possible impacts |
当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
May 7, 2026, midnight |
| Registration Date |
May 13, 2026, 10:24 a.m. |
| Last Update |
May 13, 2026, 10:24 a.m. |
|
CVSS3.0 : 重要
|
| Score |
8.8
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected System
| gitpython project |
|
gitpython 3.1.30 以上 3.1.47 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年05月13日] 掲載 |
May 13, 2026, 10:24 a.m. |
NVD Vulnerability Information
CVE-2026-42215
| Summary |
GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. 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 12, 2026, 2:45 a.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* |
3.1.30 |
|
|
3.1.47 |
Related information, measures and tools
Common Vulnerabilities List