CVE-2025-46835 Git GUI can create and overwrite files for which the user has write permission

High 8.5 Published Updated

Git GUI allows attackers to overwrite arbitrary files via maliciously named directories when users edit files in untrusted repositories.

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-46835?

CVE-2025-46835 is a high-severity path traversal 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. When a user clones an untrusted repository and is tricked into editing a file located in a maliciously named directory in the repository, then Git GUI can create and overwrite files for which the user has write permission. 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-88

Which versions are affected by CVE-2025-46835?

How do I fix CVE-2025-46835?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-46835 being exploited?

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

Sources

Also known as ALPINE-CVE-2025-46835, BELL-CVE-2025-46835, CLSA-2025-1755008210, CLSA-2025-1755184971, CLSA-2025-1759167661, CLSA-2025-1759167915 and 8 more.

Is CVE-2025-46835 in your software?

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

Check your SBOMs for free