CVE-2014-9390

CRITICAL

Malicious Git and Mercurial HTTP Server For CVE-2014-9390

Title source: metasploit
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2014-9390. Includes Metasploit module exploits/multi/http/git_client_command_exec.

AI-analyzed exploit summary This Metasploit module exploits CVE-2014-9390 by creating a malicious Git repository that overwrites sensitive configuration files in the .git directory, leading to arbitrary code execution on vulnerable Git clients.

Description

Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and OS X; Mercurial before 3.2.3 on Windows and OS X; Apple Xcode before 6.2 beta 3; mine all versions before 08-12-2014; libgit2 all versions up to 0.21.2; Egit all versions before 08-12-2014; and JGit all versions before 08-12-2014 allow remote Git servers to execute arbitrary commands via a tree containing a crafted .git/config file with (1) an ignorable Unicode codepoint, (2) a git~1/config representation, or (3) mixed case that is improperly handled on a case-insensitive filesystem.

Exploits (1)

metasploit WORKING POC EXCELLENT
rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/git_client_command_exec.rb

This Metasploit module exploits CVE-2014-9390 by creating a malicious Git repository that overwrites sensitive configuration files in the .git directory, leading to arbitrary code execution on vulnerable Git clients.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Git (versions less than 1.8.5.6, 1.9.5, 2.0.5, 2.1.4, 2.2.1) and Mercurial (versions less than 3.2.3)
No auth needed
Prerequisites: Vulnerable Git or Mercurial client · Victim must interact with the malicious repository
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://news.ycombinator.com/item?id=8769667
Release Notes, Third Party Advisory x_refsource_misc
http://mercurial.selenic.com/wiki/WhatsNew
Vendor Advisory x_refsource_misc
http://support.apple.com/kb/HT204147
Third Party Advisory, VDB Entry x_refsource_misc
http://securitytracker.com/id?1031404
Product x_refsource_misc
https://libgit2.org/security/

Scores

CVSS v3 9.8
EPSS 0.7715
EPSS Percentile 99.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-20
Status published
Products (9)
apple/xcode 6.2 (2 CPE variants)
apple/xcode < 6.1.1
eclipse/egit < 08-12-2014
eclipse/jgit < 3.4.2
git-scm/git < 1.8.5.6
libgit2/libgit2 < 0.21.3
mercurial/mercurial < 3.2.3
org.eclipse.jgit/org.eclipse.jgit 0 - 3.5.3Maven
pypi/mercurial 0 - 3.2.3PyPI
Published Feb 12, 2020
Tracked Since Feb 18, 2026