Vulnerability · Published Jul 10, 2025 · Assigned by GitHub_M
CVE-2025-27613Gitk can create and truncate files in the user's home directory
Low 3.6
In plain English
A low-severity OS command injection in gitk from j6t. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Gitk is a Tcl/Tk based Git history browser. Starting with 1.7.0, 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). 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | git | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-all | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-all | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-all | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:8 | git-core | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-core | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-core-doc | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-core-doc | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-core-doc | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:8 | git-credential-libsecret | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-credential-libsecret | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:8 | git-daemon | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-daemon | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-email | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-email | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-email | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-gui | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-gui | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-gui | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-instaweb | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-instaweb | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-instaweb | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-subtree | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-subtree | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-subtree | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-svn | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-svn | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-svn | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | gitk | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | gitk | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | gitk | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | gitweb | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | gitweb | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | gitweb | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | perl-Git | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | perl-Git | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | perl-Git | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | perl-Git-SVN | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | perl-Git-SVN | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | perl-Git-SVN | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| Alpine:v3.20 | git | 2.45.4-r0 | ALPINE-CVE-2025-27613 |
| Alpine:v3.21 | git | 2.47.3-r0 | ALPINE-CVE-2025-27613 |
| Alpine:v3.22 | git | 2.49.1-r0 | ALPINE-CVE-2025-27613 |
| Alpine:v3.23 | git | 2.50.1-r0 | ALPINE-CVE-2025-27613 |
| Alpine:v3.24 | git | 2.50.1-r0 | ALPINE-CVE-2025-27613 |
| Debian:12 | git | 1:2.39.5-0+deb12u3 | DEBIAN-CVE-2025-27613 |
| Debian:13 | git | 1:2.47.3-0+deb13u1 | DEBIAN-CVE-2025-27613 |
| Debian:14 | git | 1:2.50.1-0.1 | DEBIAN-CVE-2025-27613 |
| Rocky Linux:8 | git | 0:2.43.7-1.el8_10 | RLSA-2025:11534 |
| Rocky Linux:9 | git | 0:2.47.3-1.el9_6 | RLSA-2025:11462 |
| Ubuntu:22.04:LTS | git | 1:2.34.1-1ubuntu1.13 | USN-7626-1 |
| Ubuntu:22.04:LTS | git | 1:2.34.1-1ubuntu1.15 | UBUNTU-CVE-2025-27613 |
| Ubuntu:24.04:LTS | git | 1:2.43.0-1ubuntu7.3 | UBUNTU-CVE-2025-27613 |
| Ubuntu:24.04:LTS | git | 1:2.43.0-1ubuntu7.3 | USN-7626-1 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
References
- https://github.com/j6t/gitk/security/advisories/GHSA-f3cw-xrj3-wr2v x_refsource_CONFIRM
- https://github.com/j6t/gitk/compare/465f03869ae11acd04abfa1b83c67879c867410c..026c397d911cde55924d7eb1311d0fd6e2e105d5 x_refsource_MISC
- https://github.com/j6t/gitk/compare/7dd272eca153058da2e8d5b9960bbbf0b4f0cbaa..67a128b91e25978a15f9f7e194d81b441d603652 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/10/msg00003.html
- http://www.openwall.com/lists/oss-security/2025/07/08/4