CVE-2017-14176 Bazaar allows remote attackers to execute arbitrary commands via a bzr+ssh URL with initial dash character in hostname

High 8.8 Published Updated

Remote attackers can execute arbitrary commands via a crafted bzr+ssh URL when Subprocess SSH is enabled in Bazaar.

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

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

Bazaar through 2.7.0, when Subprocess SSH is used, allows remote attackers to execute arbitrary commands via a bzr+ssh URL with an initial dash character in the hostname, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-12976, CVE-2017-16228, CVE-2017-1000116, and CVE-2017-1000117.

Which versions are affected by CVE-2017-14176?

3 open source packages ship an affected version, including bzr. It affects 3 products.

PackageAffectedFixed in
bzr PyPIAll versionsNone
bzr PyPIAll versions to 2.7.0None
bzr PyPIAll versions to 2.7.0None
Linux distribution packages (1)
bzr SUSE:Linux Enterprise Software Development Kit 11 SP4All versions1.8-3.5.1

Products include Canonical Bazaar, Canonical Ubuntu Linux, Debian Debian Linux.

How do I fix CVE-2017-14176?

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-14176 being exploited?

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

Sources

Also known as DEBIAN-CVE-2017-14176, DSA-4052-1, GHSA-jjxg-hpm7-g95f, PYSEC-2017-149, SUSE-SU-2018:1489-1, UBUNTU-CVE-2017-14176 and 1 more.

Is CVE-2017-14176 in your software?

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

Check your SBOMs for free