CVE-2017-12836 Command injection in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary code via crafted repository URLs when CVS is configured to use SSH for remote repositories.

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-12836?

CVE-2017-12836 is a high-severity command injection vulnerability in Canonical Ubuntu Linux, published on 24 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

CVS 1.12.x, when configured to use SSH for remote repositories, might allow remote attackers to execute arbitrary code via a repository URL with a crafted hostname, as demonstrated by "-oProxyCommand=id;localhost:/bar."

Which versions are affected by CVE-2017-12836?

It affects 3 products.

Linux distribution packages (11)
cvs SUSE:Linux Enterprise Desktop 12 SP2All versions1.12.12-182.3.1
cvs SUSE:Linux Enterprise Desktop 12 SP3All versions1.12.12-182.3.1
cvs SUSE:Linux Enterprise Server 11 SP4All versions1.12.12-144.23.5.3.1
cvs SUSE:Linux Enterprise Server 12 SP2All versions1.12.12-182.3.1
cvs SUSE:Linux Enterprise Server 12 SP3All versions1.12.12-182.3.1
cvs SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2All versions1.12.12-182.3.1
cvs SUSE:Linux Enterprise Server for SAP Applications 11 SP4All versions1.12.12-144.23.5.3.1
cvs SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions1.12.12-182.3.1
cvs SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions1.12.12-182.3.1
cvs SUSE:Linux Enterprise Software Development Kit 11 SP4All versions1.12.12-144.23.5.3.1
cvs openSUSE:TumbleweedAll versions1.12.13-1.14

Products include Canonical Ubuntu Linux, Debian Debian Linux, Gnu Cvs.

How do I fix CVE-2017-12836?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2017-12836 being exploited?

There is no known exploitation of CVE-2017-12836 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2017-12836, CLEANSTART-2023-NP57174, DEBIAN-CVE-2017-12836, DLA-1056-1, DSA-3940-1, GHSA-gw7c-p8cp-7935 and 6 more.

Is CVE-2017-12836 in your software?

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

Check your SBOMs for free