CVE-2021-28954
Description
In Chris Walz bit before 1.0.5 on Windows, attackers can run arbitrary code via a .exe file in a crafted repository.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
bit before 1.0.5 on Windows allows arbitrary code execution via a crafted repository exploiting an uncontrolled search path element.
Vulnerability
In Chris Walz's bit tool for Windows, versions 1.0.4 and earlier contain an uncontrolled search path element vulnerability (CWE-427) [2]. When bit executes Git commands, it searches for the git.exe binary in a sequence of directories. A malicious repository can place a crafted .exe file (e.g., named git.exe) in a location that is searched before the legitimate Git installation, causing bit to load and execute the attacker's binary instead [1][2].
Exploitation
An attacker needs to convince a victim to clone or open a specially crafted repository using bit on Windows. No additional authentication or special privileges are required beyond the ability to host or distribute the repository. When bit runs a Git command (e.g., during clone, fetch, or status operations), the malicious .exe file is executed in the context of the user [2].
Impact
Successful exploitation leads to arbitrary code execution with the privileges of the user running bit. The attacker can achieve full compromise of the affected system, including data theft, installation of malware, or lateral movement within the network [2].
Mitigation
The vulnerability is fixed in bit version 1.0.5 [1]. Users should update to this version or later. No workaround is documented, and the CVE is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog as of the publication date.
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Chris Walz/bitdescription
- Range: <1.0.5
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- github.com/chriswalz/bit/releases/tag/v1.0.5mitrex_refsource_MISC
- vuln.ryotak.me/advisories/17mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.