Impact
When a user clones an untrusted repository and runs gitk
without additional command arguments, files for which the user has write permission can be created and truncated. The option Support per-file encoding must have been enabled before in Gitk's Preferences. This option is disabled by default.
The same happens when Show origin of this line is used in the main window (regardless of whether Support per-file encoding is enabled or not).
Patches
Workarounds
- Ensure that the option Support per-file encoding in Gitk's Preferences is disabled.
- Do not use Show origin of this line.
- Do not clone repositories from untrusted sources.
- Do not use
gitk
.
References
A similar issue is present in Git GUI.
Impact
When a user clones an untrusted repository and runs
gitk
without additional command arguments, files for which the user has write permission can be created and truncated. The option Support per-file encoding must have been enabled before in Gitk's Preferences. This option is disabled by default.The same happens when Show origin of this line is used in the main window (regardless of whether Support per-file encoding is enabled or not).
Patches
Workarounds
gitk
.References
A similar issue is present in Git GUI.