Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-42215— GitPython: Command injection via Git options bypass

Quick assessment

Affected
gitpython-developers GitPython
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

GitPython是gitpython-developers开源的一个用于与 Git 存储库交互的 Python 库。 GitPython 3.1.30版本至3.1.47之前版本存在操作系统命令注入漏洞,该漏洞源于阻止危险Git选项但未检查等效的Python kwargs upload_pack和receive_pack,可能导致应用程序传递攻击者控制的kwargs时执行任意命令。

CVSS 8.8 · High EPSS 0.90% · P58

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
gitpython-developers GitPython >= 3.1.30, < 3.1.47 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-42215

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
GitPython: Command injection via Git options bypass
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
GitPython 操作系统命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
GitPython是gitpython-developers开源的一个用于与 Git 存储库交互的 Python 库。 GitPython 3.1.30版本至3.1.47之前版本存在操作系统命令注入漏洞,该漏洞源于阻止危险Git选项但未检查等效的Python kwargs upload_pack和receive_pack,可能导致应用程序传递攻击者控制的kwargs时执行任意命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gitpython-developers GitPython >= 3.1.30, < 3.1.47 -

II. Public POCs for CVE-2026-42215

# POC Description Source Link Shenlong Link
AI-Generated POC Verified env Premium
Reproduced successfully in a real sandbox · Below is the actual recording of building the environment and exploiting the vulnerability.
Success marker: VULNERABLE: Command injection via upload_pack kwarg bypass in GitPython 3.1.46 — proof token: PROOF_7d65095185aa8ac3
Reproduction recording is a Pro+ exclusive
Watch the full sandbox build + live exploit recording for this CVE. Limited-time ¥499/mo.
Upgrade to Pro+
claude_code · 8412 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-42215

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-42215 (1)

Vendor Pages for CVE-2026-42215 (1)

Same Patch Batch · gitpython-developers · 2026-05-07 · 4 CVEs total

CVE-2026-42284 8.1 HIGH GitPython: Unsafe option check validates multi_options before shlex.split transforms it
CVE-2026-44244 7.8 HIGH GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
CVE-2026-44243 GitPython: Path traversal in GitPython reference APIs allows arbitrary file write and dele

IV. Related Vulnerabilities

V. Comments for CVE-2026-42215

No comments yet


Leave a comment