CVE-2017-17522 Command injection in n/a

High 8.8 Published Updated

Attackers could potentially execute arbitrary commands via argument injection in the webbrowser module if the BROWSER environment variable is manipulated, though exploitation is disputed.

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

CVE-2017-17522 is a high-severity command injection vulnerability in Python Python, published on 14 Dec 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

Lib/webbrowser.py in Python through 3.6.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. NOTE: a software maintainer indicates that exploitation is impossible because the code relies on subprocess.Popen and the default shell=False setting

Weakness: CWE-74

Which versions are affected by CVE-2017-17522?

It affects 1 product.

Products include Python Python.

How do I fix CVE-2017-17522?

No fix published yet.

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

Is CVE-2017-17522 being exploited?

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

All Python Python vulnerabilities

Sources

Also known as AZL-109617, AZL-6823, DEBIAN-CVE-2017-17522, GHSA-3qjm-23v2-9v26.

Is CVE-2017-17522 in your software?

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

Check your SBOMs for free