CVE-2017-12426 Command injection in n/a
Remote attackers can execute arbitrary code in GitLab by using a crafted SSH URL during project import.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-12426?
CVE-2017-12426 is a high-severity command injection vulnerability in Gitlab Gitlab, published on 14 Aug 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
GitLab Community Edition (CE) and Enterprise Edition (EE) before 8.17.8, 9.0.x before 9.0.13, 9.1.x before 9.1.10, 9.2.x before 9.2.10, 9.3.x before 9.3.10, and 9.4.x before 9.4.4 might allow remote attackers to execute arbitrary code via a crafted SSH URL in a project import.
Weakness: CWE-20
Which versions are affected by CVE-2017-12426?
It affects 1 product.
Products include Gitlab Gitlab.
How do I fix CVE-2017-12426?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2017-12426 being exploited?
There is no known exploitation of CVE-2017-12426 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Gitlab Gitlab
- CVE-2026-97229 GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound
- CVE-2026-85706 GitLab Community Edition and Enterprise Edition Path Traversal
- CVE-2023-7028 GitLab Community and Enterprise Editions Improper Access Control
- CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution
- CVE-2021-39935 GitLab Community and Enterprise Editions Server-Side Request Forgery (SSRF)
Sources
Also known as GHSA-mwvc-fhmm-47cq, MINI-fj7w-5g3v-vjcw, MINI-wf7v-3p3c-7cxf, UBUNTU-CVE-2017-12426.