Critical Vulnerability in Git Package: Remote Code Execution Risk via Gitk

git Updated 02 Oct 2025

Summary

10/07/2025
N/A
Yes i
Unrated
Not published

ALPINE-CVE-2025-27614: Gitk is a Tcl/Tk based Git history browser. Affects git versions < 2.43.7-r0. Fixed in 2.43.7-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Git is a widely used version control system that allows developers to track changes in their codebase efficiently. It is essential for collaborative software development, providing features such as branching, merging, and history tracking. Gitk, a graphical history browser for Git, enables users to visualize repository changes. However, starting from version 2.41.0, Gitk has been found to be vulnerable to a security flaw that could allow an attacker to execute arbitrary scripts on a user's machine.

Vulnerability Detail

The vulnerability arises from the way Gitk processes certain filenames within a Git repository. An attacker can craft a repository that, when cloned and accessed through Gitk, can trick the user into executing malicious scripts. This is achieved through social engineering, where the user is led to invoke Gitk with a specially structured filename. The scripts run with the user's privileges, potentially leading to unauthorized access or data manipulation.

How To Fix

Minimum fixed version

2.43.7-r0

This is the first release that contains the fix.

sudo apk add --upgrade git

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users should avoid invoking Gitk with filenames that may be crafted by an attacker. It is advisable to review the repository's structure and ensure that no untrusted scripts are executed.

Conclusion

The vulnerability in Gitk poses a significant risk by allowing remote code execution through social engineering tactics. Users are strongly advised to update their Git installations to the latest patched versions to mitigate this risk. Awareness and caution when using Gitk with untrusted repositories can further enhance security.

See every vulnerability recorded for git →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary scripts on a user's machine by tricking them into using Gitk with specially crafted filenames.

You can check your Git version using the command git --version. If it is below the patched versions, it is vulnerable.

If an immediate update is not possible, avoid using Gitk with untrusted repositories or filenames until you can apply the patch.

Yes, tools like Vulert can monitor your project for open-source vulnerabilities in real-time using just a manifest file.

Detailed information can be found in the CVE database and the official Git release notes regarding the patched versions.

Related vulnerabilities

Recent vulnerabilities recorded for git.

How To Fix

Minimum fixed version

2.43.7-r0

This is the first release that contains the fix.

sudo apk add --upgrade git

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback