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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-106058— GitAhead through 2.7.1 OS Command Injection via Git Filter Filenames

Quick assessment

Affected
gitahead gitahead
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.

GitAhead 2.7.1 及之前版本中存在操作系统命令注入漏洞,该漏洞位于 src/git/Filter.cpp 文件中。攻击者可以通过在 clean/smudge 过滤器命令中注入构造的文件名,从而在恶意仓库中执行任意命令。具体来说,攻击者可以利用 .gitattributes 文件将文件名设置为包含类似 $(command) 的形式,当用户执行 checkout 或 staging 操作时,系统将调用 bash -c 执行该命令,导致受害者的系统中执行恶意命令。

CVSS 7.5 · High

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-106058

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
GitAhead through 2.7.1 OS Command Injection via Git Filter Filenames
Source: CVE Program / CVE List V5
Vulnerability Description
GitAhead through 2.7.1 contains an OS command injection vulnerability in src/git/Filter.cpp that allows malicious repositories to execute commands by substituting crafted filenames into clean/smudge filter commands. Attackers can ship files named with $(command) selected via .gitattributes so checkout or staging runs the command through bash -c as the victim.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
gitahead gitahead 0 ~ 2.7.1 -

II. Public POCs for CVE-2026-106058

# 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-106058

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

Other References for CVE-2026-106058 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-106058

No comments yet


Leave a comment