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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-78677— GitPython before 3.1.59 Path Traversal via separate-git-dir

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 目录。攻击者可以向 或 方法传递 参数,将仓库元数据重定向到攻击者控制的文件系统路径,从而实现任意目录的创建以及潜在的可疑钩子(hook)执行。

CVSS 7.5 · High

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-78677

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 Path Traversal via separate-git-dir
Source: CVE Program / CVE List V5
Vulnerability Description
GitPython before 3.1.59 omits --separate-git-dir from unsafe_git_clone_options, allowing attackers to create arbitrary git directories outside the intended clone destination. Attackers can pass a separate_git_dir parameter to Repo.clone_from() or Repo.clone() to redirect repository metadata to an attacker-controlled filesystem path, enabling arbitrary directory creation and potential hook execution.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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-78677

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

登录查看更多情报信息。

Vendor Advisories for CVE-2026-78677 (2)

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

CVE-2026-78676 9.8 CRITICAL GitPython before 3.1.59 Remote Code Execution via Config Injection
CVE-2026-78675 8.4 HIGH GitPython before 3.1.59 Local File Content Disclosure via .gitmodules
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-78677

No comments yet


Leave a comment