CVE-2025-46835
git: Git GUI can create and overwrite files for which the user has write permission
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 11, 2025
Updated · October 16, 2026
Description
A vulnerability was found in the git GUI package. When a user clones an untrusted repository and edits a file located in a maliciously named directory, git GUI may end up creating or overwriting arbitrary files for the running user has written permission. This flaw allows an attacker to modify the content of target files without the affected user's intent, resulting in a data integrity issue.
Statement
Red Hat Product Security team has rated this vulnerability as having a Low severity. The is due to the high complexity in exploiting the vulnerability. Additionally, the user needs to be tricked into cloning an untrusted repository and editing a file located in a directory with a maliciously crafted name.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Avoid using Git GUI (the "git gui" command) to inspect or modify files in repositories cloned from untrusted sources; use the Git command-line interface or another trusted tool instead. Updating to a version of git with the fixed git-gui, as made available through Red Hat product updates, resolves this issue.
CVSS / CWE
CVSS 3.1 · 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
CWE-88 · Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')