ID CVE-2015-7545
Summary The (1) git-remote-ext and (2) unspecified other remote helper programs in Git before 2.3.10, 2.4.x before 2.4.10, 2.5.x before 2.5.4, and 2.6.x before 2.6.1 do not properly restrict the allowed protocols, which might allow remote attackers to execute arbitrary code via a URL in a (a) .gitmodules file or (b) unknown other sources in a submodule.
References
Vulnerable Configurations
  • cpe:2.3:a:git_project:git:2.3.9
    cpe:2.3:a:git_project:git:2.3.9
  • cpe:2.3:a:git_project:git:2.4.0
    cpe:2.3:a:git_project:git:2.4.0
  • cpe:2.3:a:git_project:git:2.4.1
    cpe:2.3:a:git_project:git:2.4.1
  • cpe:2.3:a:git_project:git:2.4.2
    cpe:2.3:a:git_project:git:2.4.2
  • cpe:2.3:a:git_project:git:2.4.3
    cpe:2.3:a:git_project:git:2.4.3
  • cpe:2.3:a:git_project:git:2.4.4
    cpe:2.3:a:git_project:git:2.4.4
  • cpe:2.3:a:git_project:git:2.4.5
    cpe:2.3:a:git_project:git:2.4.5
  • cpe:2.3:a:git_project:git:2.4.6
    cpe:2.3:a:git_project:git:2.4.6
  • cpe:2.3:a:git_project:git:2.4.7
    cpe:2.3:a:git_project:git:2.4.7
  • cpe:2.3:a:git_project:git:2.4.8
    cpe:2.3:a:git_project:git:2.4.8
  • cpe:2.3:a:git_project:git:2.4.9
    cpe:2.3:a:git_project:git:2.4.9
  • cpe:2.3:a:git_project:git:2.5.0
    cpe:2.3:a:git_project:git:2.5.0
  • cpe:2.3:a:git_project:git:2.5.1
    cpe:2.3:a:git_project:git:2.5.1
  • cpe:2.3:a:git_project:git:2.5.2
    cpe:2.3:a:git_project:git:2.5.2
  • Git Project Git 2.5.3
    cpe:2.3:a:git_project:git:2.5.3
  • cpe:2.3:a:git_project:git:2.6.0
    cpe:2.3:a:git_project:git:2.6.0
  • cpe:2.3:a:redhat:software_collections:1.0
    cpe:2.3:a:redhat:software_collections:1.0
  • Canonical Ubuntu Linux 12.04 LTS
    cpe:2.3:o:canonical:ubuntu_linux:12.04:-:-:-:lts
  • Canonical Ubuntu Linux 14.04 LTS (Long-Term Support)
    cpe:2.3:o:canonical:ubuntu_linux:14.04:-:-:-:lts
  • Canonical Ubuntu Linux 15.04
    cpe:2.3:o:canonical:ubuntu_linux:15.04
  • Canonical Ubuntu Linux 15.10
    cpe:2.3:o:canonical:ubuntu_linux:15.10
  • OpenSUSE 13.1
    cpe:2.3:o:opensuse:opensuse:13.1
  • OpenSUSE 13.2
    cpe:2.3:o:opensuse:opensuse:13.2
CVSS
Base: 7.5 (as of 09-06-2016 - 12:52)
Impact:
Exploitability:
CWE CWE-284
CAPEC
  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Signature Spoofing by Key Theft
    An attacker obtains an authoritative or reputable signer's private signature key by theft and then uses this key to forge signatures from the original signer to mislead a victim into performing actions that benefit the attacker.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2015-2561.NASL
    description Updated git packages that fix one security issue are now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having Moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Git is a distributed revision control system with a decentralized architecture. As opposed to centralized version control systems with a client-server model, Git ensures that each working copy of a Git repository is an exact copy with complete revision history. This not only allows the user to work on and contribute to projects without the need to have permission to push the changes to their official repositories, but also makes it possible for the user to work with no network connection. A flaw was found in the way the git-remote-ext helper processed certain URLs. If a user had Git configured to automatically clone submodules from untrusted repositories, an attacker could inject commands into the URL of a submodule, allowing them to execute arbitrary code on the user's system. (BZ#1269794) All git users are advised to upgrade to these updated packages, which contain a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 87275
    published 2015-12-09
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87275
    title RHEL 7 : git (RHSA-2015:2561)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-3435.NASL
    description Blake Burkhart discovered that the Git git-remote-ext helper incorrectly handled recursive clones of git repositories. A remote attacker could possibly use this issue to execute arbitary code by injecting commands via crafted URLs.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 87742
    published 2016-01-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87742
    title Debian DSA-3435-1 : git - security update
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_7F645EE5768111E58519005056AC623E.NASL
    description Git release notes : Some protocols (like git-remote-ext) can execute arbitrary code found in the URL. The URLs that submodules use may come from arbitrary sources (e.g., .gitmodules files in a remote repository), and can hurt those who blindly enable recursive fetch. Restrict the allowed protocols to well known and safe ones.
    last seen 2019-02-21
    modified 2018-11-21
    plugin id 86450
    published 2015-10-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=86450
    title FreeBSD : Git -- Execute arbitrary code (7f645ee5-7681-11e5-8519-005056ac623e)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201605-01.NASL
    description The remote host is affected by the vulnerability described in GLSA-201605-01 (Git: Multiple vulnerabilities) Git is vulnerable to the remote execution of arbitrary code by cloning repositories with large filenames or a large number of nested trees. Additionally, some protocols within Git, such as git-remote-ext, can execute arbitrary code found within URLs. These URLs that submodules use may come from arbitrary sources (e.g., .gitmodules files in a remote repository), and can effect those who enable recursive fetch. Restrict the allowed protocols to well known and safe ones. Impact : Remote attackers could execute arbitrary code on both client and server. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-11-19
    plugin id 90849
    published 2016-05-03
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90849
    title GLSA-201605-01 : Git: Multiple vulnerabilities
  • NASL family SuSE Local Security Checks
    NASL id SUSE_SU-2015-2325-1.NASL
    description The git package was updated to fix the following security issue : - CVE-2015-7545: Fix remote code execution with recursive fetch of submodules (bsc#948969). Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-29
    plugin id 87589
    published 2015-12-22
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87589
    title SUSE SLES12 Security Update : Recommended update for git (SUSE-SU-2015:2325-1)
  • NASL family Slackware Local Security Checks
    NASL id SLACKWARE_SSA_2016-123-01.NASL
    description New mercurial packages are available for Slackware 13.0, 13.1, 13.37, 14.0, 14.1, and -current to fix a security issue.
    last seen 2019-02-21
    modified 2016-12-01
    plugin id 90836
    published 2016-05-03
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90836
    title Slackware 13.0 / 13.1 / 13.37 / 14.0 / 14.1 / current : mercurial (SSA:2016-123-01)
  • NASL family Amazon Linux Local Security Checks
    NASL id ALA_ALAS-2015-613.NASL
    description A flaw was found in the way the git-remote-ext helper processed certain URLs. If a user had Git configured to automatically clone submodules from untrusted repositories, an attacker could inject commands into the URL of a submodule, allowing them to execute arbitrary code on the user's system.
    last seen 2019-02-21
    modified 2018-04-18
    plugin id 87339
    published 2015-12-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87339
    title Amazon Linux AMI : git (ALAS-2015-613)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2015-2561.NASL
    description From Red Hat Security Advisory 2015:2561 : Updated git packages that fix one security issue are now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having Moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Git is a distributed revision control system with a decentralized architecture. As opposed to centralized version control systems with a client-server model, Git ensures that each working copy of a Git repository is an exact copy with complete revision history. This not only allows the user to work on and contribute to projects without the need to have permission to push the changes to their official repositories, but also makes it possible for the user to work with no network connection. A flaw was found in the way the git-remote-ext helper processed certain URLs. If a user had Git configured to automatically clone submodules from untrusted repositories, an attacker could inject commands into the URL of a submodule, allowing them to execute arbitrary code on the user's system. (BZ#1269794) All git users are advised to upgrade to these updated packages, which contain a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-07-25
    plugin id 87272
    published 2015-12-09
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87272
    title Oracle Linux 7 : git (ELSA-2015-2561)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2015-2561.NASL
    description Updated git packages that fix one security issue are now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having Moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Git is a distributed revision control system with a decentralized architecture. As opposed to centralized version control systems with a client-server model, Git ensures that each working copy of a Git repository is an exact copy with complete revision history. This not only allows the user to work on and contribute to projects without the need to have permission to push the changes to their official repositories, but also makes it possible for the user to work with no network connection. A flaw was found in the way the git-remote-ext helper processed certain URLs. If a user had Git configured to automatically clone submodules from untrusted repositories, an attacker could inject commands into the URL of a submodule, allowing them to execute arbitrary code on the user's system. (BZ#1269794) All git users are advised to upgrade to these updated packages, which contain a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 87282
    published 2015-12-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87282
    title CentOS 7 : git (CESA-2015:2561)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-2835-1.NASL
    description Blake Burkhart discovered that the Git git-remote-ext helper incorrectly handled recursive clones of git repositories. A remote attacker could possibly use this issue to execute arbitrary code by injecting commands via crafted URLs. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 87407
    published 2015-12-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87407
    title Ubuntu 12.04 LTS / 14.04 LTS / 15.04 / 15.10 : git vulnerability (USN-2835-1)
redhat via4
advisories
  • bugzilla
    id 1269794
    title CVE-2015-7545 git: arbitrary code execution via crafted URLs
    oval
    AND
    • OR
      • comment Red Hat Enterprise Linux 7 Client is installed
        oval oval:com.redhat.rhba:tst:20150364001
      • comment Red Hat Enterprise Linux 7 Server is installed
        oval oval:com.redhat.rhba:tst:20150364002
      • comment Red Hat Enterprise Linux 7 Workstation is installed
        oval oval:com.redhat.rhba:tst:20150364003
      • comment Red Hat Enterprise Linux 7 ComputeNode is installed
        oval oval:com.redhat.rhba:tst:20150364004
    • OR
      • AND
        • comment emacs-git is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561027
        • comment emacs-git is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003012
      • AND
        • comment emacs-git-el is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561031
        • comment emacs-git-el is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003024
      • AND
        • comment git is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561005
        • comment git is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003006
      • AND
        • comment git-all is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561011
        • comment git-all is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003028
      • AND
        • comment git-bzr is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561019
        • comment git-bzr is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20152561020
      • AND
        • comment git-cvs is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561013
        • comment git-cvs is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003014
      • AND
        • comment git-daemon is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561007
        • comment git-daemon is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003026
      • AND
        • comment git-email is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561015
        • comment git-email is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003010
      • AND
        • comment git-gui is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561021
        • comment git-gui is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003022
      • AND
        • comment git-hg is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561025
        • comment git-hg is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20152561026
      • AND
        • comment git-p4 is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561035
        • comment git-p4 is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20152561036
      • AND
        • comment git-svn is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561009
        • comment git-svn is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003020
      • AND
        • comment gitk is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561029
        • comment gitk is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003008
      • AND
        • comment gitweb is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561023
        • comment gitweb is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003018
      • AND
        • comment perl-Git is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561033
        • comment perl-Git is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20101003016
      • AND
        • comment perl-Git-SVN is earlier than 0:1.8.3.1-6.el7
          oval oval:com.redhat.rhsa:tst:20152561017
        • comment perl-Git-SVN is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20152561018
    rhsa
    id RHSA-2015:2561
    released 2015-12-08
    severity Moderate
    title RHSA-2015:2561: git security update (Moderate)
  • rhsa
    id RHSA-2015:2515
rpms
  • emacs-git-0:1.8.3.1-6.el7
  • emacs-git-el-0:1.8.3.1-6.el7
  • git-0:1.8.3.1-6.el7
  • git-all-0:1.8.3.1-6.el7
  • git-bzr-0:1.8.3.1-6.el7
  • git-cvs-0:1.8.3.1-6.el7
  • git-daemon-0:1.8.3.1-6.el7
  • git-email-0:1.8.3.1-6.el7
  • git-gui-0:1.8.3.1-6.el7
  • git-hg-0:1.8.3.1-6.el7
  • git-p4-0:1.8.3.1-6.el7
  • git-svn-0:1.8.3.1-6.el7
  • gitk-0:1.8.3.1-6.el7
  • gitweb-0:1.8.3.1-6.el7
  • perl-Git-0:1.8.3.1-6.el7
  • perl-Git-SVN-0:1.8.3.1-6.el7
refmap via4
bid 78711
confirm
debian DSA-3435
gentoo GLSA-201605-01
mlist
  • [linux-kernel] 20151005 [ANNOUNCE] Git v2.6.1, v2.5.4, v2.4.10 and v2.3.10
  • [oss-security] 20151208 CVE for git issue - please use CVE-2015-7545
  • [oss-security] 20151209 Re: CVE for git issue - please use CVE-2015-7545
  • [oss-security] 20151211 Re: CVE for git issue - please use CVE-2015-7545
sectrack 1034501
slackware SSA:2016-123-01
suse openSUSE-SU-2015:1968
ubuntu USN-2835-1
Last major update 30-11-2016 - 22:01
Published 13-04-2016 - 11:59
Last modified 30-10-2018 - 12:27
Back to Top