CVE-2017-17522: High severity Python Python vulnerability

Published Dec 14, 2017
·
Updated

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.

Other sources

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

— Microsoft

Affected Software

20 affected componentsFixes available
Python Python<=3.6.3
All of the following
azurelinux/python2-tools<2.7.18-3
2.7.18-3
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python2-devel<2.7.18-3
2.7.18-3
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python2<2.7.18-8
2.7.18-8
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/python2-libs<2.7.18-3
2.7.18-3
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python-curses<2.7.18-3
2.7.18-3
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python2<2.7.18-3
2.7.18-3
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python2-debuginfo<2.7.18-3
2.7.18-3
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python-xml<2.7.18-3
2.7.18-3
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python2-test<2.7.18-3
2.7.18-3
Microsoft CBL-Mariner=1.0
debian/jython<=2.7.3+repack1-1, <=2.7.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade azurelinux/python2-tools to a version that resolves this vulnerability.

    Fixed in 2.7.18-3
  2. Upgrade

    Upgrade azurelinux/python2 to a version that resolves this vulnerability.

    Fixed in 2.7.18-8
  3. Upgrade

    Upgrade azurelinux/python2-devel to a version that resolves this vulnerability.

    Fixed in 2.7.18-3
  4. Upgrade

    Upgrade azurelinux/python2-libs to a version that resolves this vulnerability.

    Fixed in 2.7.18-3
  5. Upgrade

    Upgrade azurelinux/python-curses to a version that resolves this vulnerability.

    Fixed in 2.7.18-3
  6. Upgrade

    Upgrade azurelinux/python2 to a version that resolves this vulnerability.

    Fixed in 2.7.18-3
  7. Upgrade

    Upgrade azurelinux/python2-debuginfo to a version that resolves this vulnerability.

    Fixed in 2.7.18-3
  8. Upgrade

    Upgrade azurelinux/python-xml to a version that resolves this vulnerability.

    Fixed in 2.7.18-3
  9. Upgrade

    Upgrade azurelinux/python2-test to a version that resolves this vulnerability.

    Fixed in 2.7.18-3

Event History

Dec 14, 2017
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description
Disputed
04:29 PM
Data Sourced
via OSV·04:29 PM
DescriptionSeverity
Aug 18, 2020
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2017-17522?

CVE-2017-17522 is classified as a disputed vulnerability, suggesting potential risks for argument-injection attacks.

2

How does CVE-2017-17522 affect affected software packages?

CVE-2017-17522 affects various Python versions, including Python 3.6.3 and earlier, as well as Jython and Python 2.7.18.

3

Can CVE-2017-17522 be exploited remotely?

Yes, CVE-2017-17522 may allow remote attackers to exploit the vulnerability through specially crafted URLs.

4

How do I fix CVE-2017-17522?

To mitigate CVE-2017-17522, it's recommended to upgrade to a version of Python that properly validates the BROWSER environment variable.

5

Is the impact of CVE-2017-17522 limited to Python?

While primarily affecting Python, the vulnerability can impact applications that rely on the affected versions of the language.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203