Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| gitahead / gitahead | affected 0 through 2.7.1 |
CWE
CWE-78
References
- 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
- https://www.vulncheck.com/advisories/gitahead-through-2.7.1-os-command-injection-via-git-filter-filenames
ADP enrichment
No English description supplied.