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

High 7.7 Published Updated

GitAhead allows OS command injection via malicious repository filenames, enabling attackers to execute arbitrary code on the victim's machine.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-106058?

CVE-2026-106058 is a high-severity command injection vulnerability in gitahead, published on 7 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-78

Which versions are affected by CVE-2026-106058?

How do I fix CVE-2026-106058?

No fix has been published for CVE-2026-106058 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-106058 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-106058 exists.

Sources

Also known as GHSA-q252-mvpj-37m5.

Is CVE-2026-106058 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free