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.
Published: 2026-10-07
Score: 7.7 High
EPSS: 1.2% Low
KEV: No
Impact: OS Command Injection
Action: Upgrade
AI Analysis

Impact

GitAhead through version 2.7.1 contains a CWE-78 OS command injection flaw in its clean and smudge filter logic located in src/git/Filter.cpp. The bug allows specially crafted filenames supplied by a malicious repository to be passed directly to the system shell via bash -c, giving an attacker the ability to execute arbitrary commands on the machine where GitAhead is running. This can lead to complete compromise of the operating system, data loss, or further lateral movement. The vulnerability is a classic case of improperly handling user‑supplied input that ends up being interpreted as shell code.

Affected Systems

The affected product is the GitAhead client, version 2.7.1. All installations of this release are vulnerable.

Risk and Exploitability

The CVSS score of 7.7 indicates a high severity and suggests that the vulnerability meets the criteria for remote code execution. The EPSS score of 1% indicates a very low but non‑zero probability of exploitation, and the issue has not been listed in the CISA KEV catalog, so no public exploitation data are currently known. Nevertheless, the attack would require an attacker to host or craft a repository with a .gitattributes file that references a filter and expose a filename containing a shell expansion such as $(id). When a victim runs git checkout, git add, or any other operation that triggers the filter, the victim’s shell will execute the injected command. Because the injected command runs with the same privileges as the GitAhead process, any user able to run GitAhead on a target machine could potentially steal data, install malware, or gain administrative rights.

Generated by OpenCVE AI on October 8, 2026 at 18:13 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the latest GitAhead release that removes the vulnerability.
  • If an immediate upgrade is not possible, remove or disable smudge/clean filter support by deleting the relevant .gitattributes entries or setting git config filter.<name>.cleanup false.
  • Avoid cloning or pulling from untrusted or unknown repositories until a secure version is installed.

Generated by OpenCVE AI on October 8, 2026 at 18:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 07 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 07 Oct 2026 13:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitahead
Gitahead gitahead
Vendors & Products Gitahead
Gitahead gitahead

Wed, 07 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
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.
Title GitAhead through 2.7.1 OS Command Injection via Git Filter Filenames
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': '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'}


Subscriptions

Gitahead Gitahead
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-07T20:55:38.241Z

Reserved: 2026-10-06T14:14:17.656Z

Link: CVE-2026-106058

cve-icon Vulnrichment

Updated: 2026-10-07T20:54:03.689Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-07T12:17:08.920

Modified: 2026-10-07T21:17:12.053

Link: CVE-2026-106058

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-08T18:15:14Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')