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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-76221— GitPython before 3.1.58 Config Injection via option-name

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-developers GitPython是gitpython-developers团队的一个提供Git仓库操作能力的Python组件。 gitpython-developers GitPython 3.1.58之前版本存在输入验证错误漏洞,该漏洞源于选项名称验证器中的配置名称注入,攻击者可通过向选项名称中注入等号、井号和空格来伪造任意git-config指令,导致在下次git操作时通过core.sshCommand或core.hooksPath执行任意命令。

CVSS 8.8 · High EPSS 0.37% · P30

Affected Version Matrix 2

VendorProduct Version RangeStatus
gitpython-developers GitPython < 3.1.58 affected
3.1.58 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-76221

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 before 3.1.58 Config Injection via option-name
Source: CVE Program / CVE List V5
Vulnerability Description
GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace into option names. Attackers can inject malicious option names like 'sshCommand = touch /tmp/RCE #' to execute arbitrary commands via core.sshCommand or core.hooksPath on the next git operation.
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
输出中的特殊元素转义处理不恰当(注入)
Source: CVE Program / CVE List V5
Vulnerability Title
gitpython-developers GitPython 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
gitpython-developers GitPython是gitpython-developers团队的一个提供Git仓库操作能力的Python组件。 gitpython-developers GitPython 3.1.58之前版本存在输入验证错误漏洞,该漏洞源于选项名称验证器中的配置名称注入,攻击者可通过向选项名称中注入等号、井号和空格来伪造任意git-config指令,导致在下次git操作时通过core.sshCommand或core.hooksPath执行任意命令。
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 0 ~ 3.1.58 -

II. Public POCs for CVE-2026-76221

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8078 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-76221

登录查看更多情报信息。

Vendor Advisories for CVE-2026-76221 (2)

Same Patch Batch · gitpython-developers · 2026-08-19 · 6 CVEs total

CVE-2026-76220 8.8 HIGH GitPython before 3.1.58 Command Execution via split_single_char_options
CVE-2026-76222 8.2 HIGH GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name
CVE-2026-76219 8.1 HIGH GitPython before 3.1.58 Arbitrary File Overwrite via read-tree
CVE-2026-76218 7.5 HIGH GitPython before 3.1.58 Remote Code Execution via Repo.init
CVE-2026-76217 6.5 MEDIUM GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file

IV. Related Vulnerabilities

V. Comments for CVE-2026-76221

No comments yet


Leave a comment