CVE-2025-46334 Git GUI malicious command injection on Windows

High 8.6 Published Updated

A malicious repository can execute arbitrary commands on Windows via Git GUI due to Tcl's unsafe executable search path behavior.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-46334?

CVE-2025-46334 is a high-severity command injection vulnerability in j6t git-gui, published on 10 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Git GUI allows you to use the Git source control management tools via a GUI. A malicious repository can ship versions of sh.exe or typical textconv filter programs such as astextplain. Due to the unfortunate design of Tcl on Windows, the search path when looking for an executable always includes the current directory. The mentioned programs are invoked when the user selects Git Bash or Browse Files from the menu. This vulnerability is fixed in 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3, 2.48.2, 2.49.1, and 2.50.1.

Weakness: CWE-78

Which versions are affected by CVE-2025-46334?

How do I fix CVE-2025-46334?

Upgrade to a fixed version.

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

Is CVE-2025-46334 being exploited?

There is no known exploitation of CVE-2025-46334 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2025-46334, BELL-CVE-2025-46334, GHSA-7px4-9hg2-fvhx.

Is CVE-2025-46334 in your software?

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

Check your SBOMs for free