Lucene search

K
archlinuxArchLinuxASA-201810-7
HistoryOct 09, 2018 - 12:00 a.m.

[ASA-201810-7] git: arbitrary code execution

2018-10-0900:00:00
security.archlinux.org
13

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.161 Low

EPSS

Percentile

95.9%

Arch Linux Security Advisory ASA-201810-7

Severity: High
Date : 2018-10-09
CVE-ID : CVE-2018-17456
Package : git
Type : arbitrary code execution
Remote : Yes
Link : https://security.archlinux.org/AVG-776

Summary

The package git before version 2.19.1-1 is vulnerable to arbitrary code
execution.

Resolution

Upgrade to 2.19.1-1.

pacman -Syu “git>=2.19.1-1”

The problem has been fixed upstream in version 2.19.1.

Workaround

None.

Description

A security issue has been found in git versions prior to 2.19.1, which
allows an attacker to execute arbitrary code by crafting a malicious
.gitmodules file in a project cloned with --recurse-submodules.
When running “git clone --recurse-submodules”, Git parses the supplied
.gitmodules file for a URL field and blindly passes it as an argument
to a “git clone” subprocess. If the URL field is set to a string that
begins with a dash, this “git clone” subprocess interprets the URL as an
option. This can lead to executing an arbitrary script shipped in the
superproject as the user who ran “git clone”.

Impact

A remote attacker can execute arbitrary code on the affected host by
convincing a local user to clone a specially crafted git repository and
its sub-modules.

References

https://marc.info/?l=git&m=153875888916397&w=2
https://git.kernel.org/pub/scm/git/git.git/commit/?id=98afac7a7cefdca0d2c4917dd8066a59f7088265
https://git.kernel.org/pub/scm/git/git.git/commit/?id=f6adec4e329ef0e25e14c63b735a5956dc67b8bc
https://git.kernel.org/pub/scm/git/git.git/commit/?id=273c61496f88c6495b886acb1041fe57965151da
https://security.archlinux.org/CVE-2018-17456

OSVersionArchitecturePackageVersionFilename
ArchLinuxanyanygit< 2.19.1-1UNKNOWN

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.161 Low

EPSS

Percentile

95.9%