BREW-GIT-CVE-2018-11235 (CVE-2018-11235)
Vulnerability from osv_homebrew – Published: 2026-10-15 03:31 – Updated: 2026-10-15 03:31 – Source websiteIn 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.
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "2.17.1"
},
"package": {
"ecosystem": "Homebrew",
"name": "git",
"purl": "pkg:brew/git"
},
"ranges": [
{
"events": [
{
"introduced": "1.7.10"
},
{
"fixed": "2.17.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "git",
"upstream_evidence": [
{
"ecosystem": "GIT",
"key": "https://github.com/git/git",
"name": "https://github.com/git/git",
"strategy": "git",
"subject_version": "2.56.0"
},
{
"ecosystem": "Debian",
"key": "Debian/git",
"name": "git",
"strategy": "distro"
},
{
"ecosystem": "GIT",
"key": "upstream:https://github.com/git/git",
"name": "https://github.com/git/git",
"strategy": "distro",
"subject_version": "2.56.0"
},
{
"ecosystem": "Ubuntu",
"key": "Ubuntu/git",
"name": "git",
"strategy": "distro"
}
]
},
"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.",
"id": "BREW-git-CVE-2018-11235",
"modified": "2026-10-15T03:31:21Z",
"published": "2026-10-15T03:31:21Z",
"references": [
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html"
},
{
"type": "ADVISORY",
"url": "http://www.securityfocus.com/bid/104345"
},
{
"type": "ADVISORY",
"url": "http://www.securitytracker.com/id/1040991"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2018:1957"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2018:2147"
},
{
"type": "ADVISORY",
"url": "https://marc.info/?l=git\u0026m=152761328506724\u0026w=2"
},
{
"type": "ADVISORY",
"url": "https://security.gentoo.org/glsa/201805-13"
},
{
"type": "ADVISORY",
"url": "https://usn.ubuntu.com/3671-1/"
},
{
"type": "ADVISORY",
"url": "https://www.debian.org/security/2018/dsa-4212"
},
{
"type": "FIX",
"url": "https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/"
},
{
"type": "EVIDENCE",
"url": "https://www.exploit-db.com/exploits/44822/"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"upstream": [
"CVE-2018-11235"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.