Back to CVE catalog
CVE-2018-11235

Git remote code execution via crafted .gitmodules

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.0

7.8High
Published:
Updated:
EPSS:
47.42%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Local

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:Red HatJBoss Developer Studio 11Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux Client Optional (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux ComputeNode Optional (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux Server (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux Server Optional (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux Workstation (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux Workstation Optional (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat OpenShift Container Platform 3.2Affected versions:Source does not specify a version range

1–10 of 61 · Page 1 of 7

CVSS scores and metrics6
[email protected] · NVD (Primary)Primary7.8 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Not required
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVE-2018-11235 · OSV (source-vector)7.8 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Not required
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)8.8 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)6.3 / 10MediumCVSS 3.0Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
Low
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
SUSE · SUSE VEX (adp)8.0 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Low
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)6.8 / 10MediumCVSS 2.0Details
Attack complexity
Medium
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

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

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories17

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences