Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

GitLens Git Local Configuration Exec

Disclosed
Nov 14, 2023
Created
Apr 19, 2024

Description

GitKraken GitLens before v.14.0.0 allows an untrusted workspace to execute git
commands. A repo may include its own .git folder including a malicious config file to
execute arbitrary code.

Tested against VSCode 1.87.2 with GitLens 13.6.0 on Ubuntu 22.04 and Windows 10

Authors

h00die
Paul Gerste

Platform

Linux,Unix,Windows

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/fileformat/gitlens_local_config_exec
msf exploit(gitlens_local_config_exec) > show targets
...targets...
msf exploit(gitlens_local_config_exec) > set TARGET < target-id >
msf exploit(gitlens_local_config_exec) > show options
...show and set options...
msf exploit(gitlens_local_config_exec) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.