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

- Severity: High 7.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-07T11:59:37.841Z
- Modified: 2026-10-07T21:17:12.053Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- gitahead gitahead: up to 2.7.1

## Every score

- VulnCheck: CVSS:4.0 7.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitahead/gitahead/issues/661> (exploit, issue-tracking)
- <https://github.com/gitahead/gitahead> (product)
- <https://github.com/gitahead/gitahead/blob/v2.7.1/src/git/Filter.cpp#L43-L70> (technical-description)
- <https://www.vulncheck.com/advisories/gitahead-through-2.7.1-os-command-injection-via-git-filter-filenames> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-106058](https://www.cve.org/CVERecord?id=CVE-2026-106058), CVE Terms of Use, modified 2026-10-07
- NVD: [CVE-2026-106058](https://nvd.nist.gov/vuln/detail/CVE-2026-106058), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2026-106058 · Whole record: https://cve.day/CVE-2026-106058.json · Rebuilt by cve.day 2026-11-25T22:59:42.708Z
