CVE-2018-17456

high
Published — · Modified —
CVSS v3
CVSS v4 NEW
not yet in upstream
VIR risk
9.0

Description

Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows remote code execution during processing of a recursive "git clone" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.

✚ Propose a mitigation on Community → Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-45631 local linux
joernchen · 2018-10-16

Git Submodule - Arbitrary Code Execution

Source code queued for fetch — refresh in a moment.
EDB-45548 local linux
Junio C Hamano · 2018-10-05

Git Submodule - Arbitrary Code Execution (PoC)

Source code queued for fetch — refresh in a moment.

Metasploit modules

Malicious Git HTTP Server For CVE-2018-17456
Source fetch failed: fetch_error — view the original via the link above.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
Affected
arch Arch Fixed 1 release
VersionStatusFixed in
Fixed 2.19.1-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 1:2.19.1-1
sid Fixed 1:2.19.1-1
forky Fixed 1:2.19.1-1
bullseye Fixed 1:2.19.1-1
bookworm Fixed 1:2.19.1-1

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.