{"id":"MSF-multi--http--git_client_command_exec","name":"Malicious Git and Mercurial HTTP Server For CVE-2014-9390","description":"This module exploits CVE-2014-9390, which affects Git (versions less than 1.8.5.6, 1.9.5, 2.0.5, 2.1.4 and 2.2.1) and Mercurial (versions less than 3.2.3) and describes three vulnerabilities. On operating systems which have case-insensitive file systems, like Windows and OS X, Git clients can be convinced to retrieve and overwrite sensitive configuration files in the .git directory which can allow arbitrary code execution if a vulnerable client can be convinced to perform certain actions (for example, a checkout) against a malicious Git repository. A second vulnerability with similar characteristics also exists in both Git and Mercurial clients, on HFS+ file systems (Mac OS X) only, where certain Unicode codepoints are ignorable. The third vulnerability with similar characteristics only affects Mercurial clients on Windows, where Windows \"short names\" (MS-DOS-compatible 8.3 format) are supported. Today this module only truly supports the first vulnerability (Git clients on case-insensitive file systems) but has the functionality to support the remaining two with a little work.","cves":["CVE-2014-9390"],"author":"Jon Hart","published":"2014-12-18","platform":"Unix,Windows","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/multi/http/git_client_command_exec.rb","path":"modules/exploits/multi/http/git_client_command_exec.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"git_client_command_exec.rb","vulnerabilities":[{"id":"CVE-2014-9390","state":"PUBLISHED","title":null,"titleSource":null,"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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-9390","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-9390"},"updatedAt":"2024-08-06T13:40:25.038Z","retrievedAt":"2026-11-26T12:02:36.171Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-multi--http--git_client_command_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-multi--http--git_client_command_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--git_client_command_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--git_client_command_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}