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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-78676— GitPython before 3.1.59 Remote Code Execution via Config Injection

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 在 3.1.59 版本之前,在写操作过程中无法安全地重新序列化多行的 git-config 值,会导致原本被引号包裹的静默配置值被损坏,并演变为类似 core.hooksPath 等可注入的指令。攻击者可以构造包含嵌入换行符的配置文件,这些文件在任意不相关的 GitPython 配置写操作后,会转化为实际生效的 Git 指令,从而通过钩子(hook)调用实现任意代码执行。

CVSS 9.8 · Critical EPSS 0.40% · P33

Affected Version Matrix 2

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

I. Basic Information for CVE-2026-78676

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.59 Remote Code Execution via Config Injection
Source: CVE Program / CVE List V5
Vulnerability Description
GitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into injected directives like core.hooksPath. Attackers can craft config files with embedded newlines that become live git directives after any unrelated GitPython config write, enabling arbitrary code execution via hook invocation.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
参数注入或修改
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
gitpython-developers GitPython 0 ~ 3.1.59 -

II. Public POCs for CVE-2026-78676

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

登录查看更多情报信息。

Vendor Advisories for CVE-2026-78676 (2)

Same Patch Batch · gitpython-developers · 2026-08-25 · 5 CVEs total

CVE-2026-78675 8.4 HIGH GitPython before 3.1.59 Local File Content Disclosure via .gitmodules
CVE-2026-78677 7.5 HIGH GitPython before 3.1.59 Path Traversal via separate-git-dir
CVE-2026-78678 6.5 MEDIUM GitPython before 3.1.59 Arbitrary File Read via Repo.blame()
CVE-2026-78679 6.5 MEDIUM GitPython before 3.1.59 Arbitrary File Read via TagReference.create

IV. Related Vulnerabilities

V. Comments for CVE-2026-78676

No comments yet


Leave a comment