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

high Nessus Plugin ID 110304

Language:

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: High

ID: 110304

File Name: freebsd_pkg_c7a135f466a411e89e633085a9a47796.nasl

Version: 1.8

Type: local

Published: 6/4/2018

Updated: 9/26/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

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

CVSS Score Source: CVE-2018-11235

CVSS v3

Risk Factor: High

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: 6/2/2018

Vulnerability Publication Date: 5/29/2018

Reference Information

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