GitAhead through 2.7.1 OS Command Injection via Git Filter Filenames
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-106058
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 01:13 UTC · Revision 1
Source evidence
GitAhead through 2.7.1 OS Command Injection via Git Filter Filenames
core-osv · Original sourcePublished 7 Oct 2026, 11:59 UTC
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.
osv:CVE-2026-106058
Complete source record
{
"id": "b112e8136fc1db0256d136a1dd68686ff5482e1aafa480d99d0cb79e1eaba95a",
"url": "https://osv.dev/vulnerability/CVE-2026-106058",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "GitAhead through 2.7.1 OS Command Injection via Git Filter Filenames",
"summary": "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.",
"evidence": "osv:CVE-2026-106058",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-106058",
"aliases": [
"CVE-2026-106058"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gitahead/gitahead",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "af959bff3b6de4102eccb6bd401519a9dc01b969"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.7.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.7.1"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v2.7.1",
"v2.7.0",
"v2.6.3",
"v2.6.2",
"v2.6.1",
"v2.6.0",
"v2.5.10",
"v2.5.9",
"v2.5.8",
"v2.5.7",
"v2.5.6",
"v2.5.5",
"v2.5.4",
"v2.5.3",
"v2.5.2",
"v2.5.1",
"v2.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-106058.json"
}
}
],
"modified": "2026-10-28T02:30:52.516095183Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106058.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-106058",
"https://www.vulncheck.com/advisories/gitahead-through-2.7.1-os-command-injection-via-git-filter-filenames",
"https://github.com/gitahead/gitahead/issues/661",
"https://github.com/gitahead/gitahead",
"https://github.com/gitahead/gitahead/blob/v2.7.1/src/git/Filter.cpp#L43-L70"
],
"provider_metadata": {
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106058.json"
}
},
"related_cves": [
{
"value": "CVE-2026-106058",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521242,
"published_at": "2026-10-07T11:59:37.841+00:00"
}