CVE-2017-18266 Command injection in n/a

High 8.8 Published Updated

Attackers can execute arbitrary commands via argument injection in xdg-open when handling crafted URLs and the BROWSER environment variable.

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

CVE-2017-18266 is a high-severity command injection vulnerability in Canonical Ubuntu Linux, published on 10 May 2018. 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

The open_envvar function in xdg-open in xdg-utils before 1.1.3 does not validate strings before launching the program specified by the BROWSER environment variable, which might allow remote attackers to conduct argument-injection attacks via a crafted URL, as demonstrated by %s in this environment variable.

Weakness: CWE-74

Which versions are affected by CVE-2017-18266?

It affects 3 products.

Linux distribution packages (3)
xdg-utils SUSE:Linux Enterprise Desktop 12 SP3All versions20140630-6.3.1
xdg-utils SUSE:Linux Enterprise Server 12 SP3All versions20140630-6.3.1
xdg-utils SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions20140630-6.3.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Freedesktop Xdg-Utils.

How do I fix CVE-2017-18266?

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

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-18266, DLA-1384-1, DSA-4211-1, GHSA-76r6-j2q8-m63q, MGASA-2018-0289, SUSE-SU-2018:1497-1 and 2 more.

Is CVE-2017-18266 in your software?

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

Check your SBOMs for free