UBUNTU-CVE-2018-11235

Source
https://ubuntu.com/security/CVE-2018-11235
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-11235.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2018-11235
Related
Published
2018-05-30T00:00:00Z
Modified
2018-05-30T00:00:00Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can occur. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs "git clone --recurse-submodules" because submodule "names" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with "../" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.

References

Affected packages

Ubuntu:14.04:LTS / git

Package

Name
git
Purl
pkg:deb/ubuntu/git?arch=src?distro=trusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1:1.9.1-1ubuntu0.8

Affected versions

1:1.*

1:1.8.3.2-1
1:1.8.4.2-1
1:1.8.4.3-1
1:1.8.4.4-1
1:1.8.5-1
1:1.8.5.1-1
1:1.8.5.2-1
1:1.8.5.2-2
1:1.8.5.3-1
1:1.9~rc1-1
1:1.9.0-1
1:1.9.1-1
1:1.9.1-1ubuntu0.1
1:1.9.1-1ubuntu0.2
1:1.9.1-1ubuntu0.3
1:1.9.1-1ubuntu0.4
1:1.9.1-1ubuntu0.5
1:1.9.1-1ubuntu0.6
1:1.9.1-1ubuntu0.7

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "high",
    "binaries": [
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-all"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-arch"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-bzr"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-core"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-cvs"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-daemon-run"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-daemon-sysvinit"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-doc"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-el"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-email"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-gui"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-man"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-mediawiki"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "git-svn"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "gitk"
        },
        {
            "binary_version": "1:1.9.1-1ubuntu0.8",
            "binary_name": "gitweb"
        }
    ]
}

Ubuntu:16.04:LTS / git

Package

Name
git
Purl
pkg:deb/ubuntu/git?arch=src?distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1:2.7.4-0ubuntu1.4

Affected versions

1:2.*

1:2.5.0-1
1:2.6.2-1
1:2.6.3-1
1:2.6.4-1
1:2.7.0~rc3-1
1:2.7.0-1
1:2.7.3-0ubuntu1
1:2.7.4-0ubuntu1
1:2.7.4-0ubuntu1.1
1:2.7.4-0ubuntu1.2
1:2.7.4-0ubuntu1.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "high",
    "binaries": [
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-all"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-arch"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-core"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-cvs"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-daemon-run"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-daemon-sysvinit"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-doc"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-el"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-email"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-gui"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-man"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-mediawiki"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "git-svn"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "gitk"
        },
        {
            "binary_version": "1:2.7.4-0ubuntu1.4",
            "binary_name": "gitweb"
        }
    ]
}

Ubuntu:18.04:LTS / git

Package

Name
git
Purl
pkg:deb/ubuntu/git?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1:2.17.1-1ubuntu0.1

Affected versions

1:2.*

1:2.14.1-1ubuntu4
1:2.15.1-1ubuntu2
1:2.17.0-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "high",
    "binaries": [
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-all"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-cvs"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-daemon-run"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-daemon-sysvinit"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-dbgsym"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-doc"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-el"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-email"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-gui"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-man"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-mediawiki"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "git-svn"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "gitk"
        },
        {
            "binary_version": "1:2.17.1-1ubuntu0.1",
            "binary_name": "gitweb"
        }
    ]
}