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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gitahead | gitahead | ≤ 2.7.1 | — |
References
- GitHub Issue #661 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
- VulnCheck Advisory: GitAhead through 2.7.1 OS Command Injection via Git Filter Filenames third-party-advisory