CVE-2017-17522

NameCVE-2017-17522
Description** DISPUTED ** 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jython (PTS)wheezy2.5.2-1fixed
wheezy (security)2.5.2-1+deb7u1fixed
jessie (security), jessie2.5.3-3+deb8u1vulnerable
stretch (security), stretch2.5.3-16+deb9u1vulnerable
buster, sid2.7.1+repack-3vulnerable
python2.6 (PTS)wheezy2.6.8-1.1vulnerable
wheezy (security)2.6.8-1.1+deb7u1vulnerable
python2.7 (PTS)wheezy2.7.3-6+deb7u2vulnerable
wheezy (security)2.7.3-6+deb7u4vulnerable
jessie2.7.9-2+deb8u1vulnerable
stretch2.7.13-2+deb9u2vulnerable
buster, sid2.7.14-4vulnerable
python3.2 (PTS)wheezy3.2.3-7vulnerable
wheezy (security)3.2.3-7+deb7u1vulnerable
python3.4 (PTS)jessie3.4.2-1vulnerable
python3.5 (PTS)stretch3.5.3-1vulnerable
sid3.5.4-4vulnerable
python3.6 (PTS)buster, sid3.6.4-3vulnerable
python3.7 (PTS)buster, sid3.7.0~a4-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jythonsource(unstable)(unfixed)unimportant
jythonsourcewheezy(not affected)
python2.6source(unstable)(unfixed)unimportant
python2.7source(unstable)(unfixed)unimportant
python3.2source(unstable)(unfixed)unimportant
python3.4source(unstable)(unfixed)unimportant
python3.5source(unstable)(unfixed)unimportant
python3.6source(unstable)(unfixed)unimportant
python3.7source(unstable)(unfixed)unimportant

Notes

[wheezy] - jython <not-affected> (Vulnerable code is not provided in the binary package)
Lib/webbrowser.py does not validate strings before launching the program
specified by the BROWSER environment variable.
https://bugs.python.org/issue32367
Hardly an issue with security impact, as the problematic code further relies
on subprocess.Popen with the default shell=False.

Search for package or bug name: Reporting problems