CVE-2017-12426 Command injection in n/a

High 8.8 Published Updated

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.

All Gitlab Gitlab vulnerabilities

Sources

Also known as GHSA-mwvc-fhmm-47cq, MINI-fj7w-5g3v-vjcw, MINI-wf7v-3p3c-7cxf, UBUNTU-CVE-2017-12426.

Is CVE-2017-12426 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free