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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-73621— GitPython before 3.1.56 Arbitrary File Truncation via Commit.count

Quick assessment

Affected
gitpython-developers GitPython
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
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组织的一个封装版本控制功能的Python库。 gitpython-developers GitPython 3.1.56之前版本存在命令注入漏洞,该漏洞源于Commit.count()方法存在参数注入漏洞,该方法将关键字参数转发给'git rev-list'时缺少check_unsafe_options保护,可能导致攻击者通过控制output参数打开并截断目标文件为零字节,从而破坏或清空进程权限级别的任意

CVSS 5.4 · Medium EPSS 0.36% · P28

Possible ATT&CK Techniques 1 AI

T1499.002 · Service Exhaustion Flood

Affected Version Matrix 2

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

I. Basic Information for CVE-2026-73621

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.56 Arbitrary File Truncation via Commit.count
Source: CVE Program / CVE List V5
Vulnerability Description
GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling iter_items method. An attacker who can control options passed to Commit.count (e.g., via an application that forwards a user-supplied options dict) can supply output=<path>, causing 'git rev-list --output=<path>' to open and truncate the target file to zero bytes before revision parsing. This allows destruction/blanking of an arbitrary file at the process's privilege level (no content control, 0-byte truncation).
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
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组织的一个封装版本控制功能的Python库。 gitpython-developers GitPython 3.1.56之前版本存在命令注入漏洞,该漏洞源于Commit.count()方法存在参数注入漏洞,该方法将关键字参数转发给'git rev-list'时缺少check_unsafe_options保护,可能导致攻击者通过控制output参数打开并截断目标文件为零字节,从而破坏或清空进程权限级别的任意
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.56 -

II. Public POCs for CVE-2026-73621

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-73621

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

Vendor Advisories for CVE-2026-73621 (2)

Same Patch Batch · gitpython-developers · 2026-08-13 · 7 CVEs total

CVE-2026-73625 8.8 HIGH GitPython before 3.1.54 Remote Code Execution via kwarg value smuggling
CVE-2026-73620 8.1 HIGH GitPython before 3.1.57 Arbitrary File Overwrite and Read
CVE-2026-73624 8.1 HIGH GitPython before 3.1.54 Arbitrary File Overwrite via diff
CVE-2026-73623 7.5 HIGH GitPython before 3.1.54 Remote Code Execution via --template
CVE-2026-73622 7.5 HIGH GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()
CVE-2026-73619 6.5 MEDIUM GitPython before 3.1.57 Arbitrary File Read via Repo.archive()

IV. Related Vulnerabilities

V. Comments for CVE-2026-73621

No comments yet


Leave a comment