FreeBSD : Git -- Fix memory out-of-bounds and remote code execution vulnerabilities (CVE-2018-11233 and CVE-2018-11235) (c7a135f4-66a4-11e8-9e63-3085a9a47796)

Medium Nessus Plugin ID 110304

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The Git community reports :

- In affected versions of Git, code to sanity-check pathnames on NTFS can result in reading out-of-bounds memory.

- In affected versions of Git, 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.

Solution

Update the affected packages.

See Also

http://www.nessus.org/u?e1123c96

Plugin Details

Severity: Medium

ID: 110304

File Name: freebsd_pkg_c7a135f466a411e89e633085a9a47796.nasl

Version: 1.7

Type: local

Published: 2018/06/04

Updated: 2019/10/11

Dependencies: 12634

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.8

Temporal Score: 5.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Temporal Vector: CVSS2#E:POC/RL:OF/RC:C

CVSS v3.0

Base Score: 7.8

Temporal Score: 7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:git, p-cpe:/a:freebsd:freebsd:git-lite, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2018/06/02

Vulnerability Publication Date: 2018/05/29

Reference Information

CVE: CVE-2018-11233, CVE-2018-11235