CVE-2013-1629: Input Validation

Published May 28, 2013
·
Updated

It was reported [1],[2] that pip, a package installer for Python modules, would retrieve code to install in an insecure manner. When pip is used to install a module, that code is retrieved from the internet and then, in the presence of setup.py, is executed. If pip is used as root (e.g. "sudo pip install [module]"), then this code is executed with root permissions. Because pip does not do TLS certificate verification, or package verification, it is trivial for an attacker to perform a MitM attack and cause the user attempting to install a module to execute arbitrary code. As of version 1.3, pip provides SSL certificate verification over HTTPS [3],[4]. [1] https://github.com/pypa/pip/issues/425 [2] http://www.reddit.com/r/Python/comments/17rfh7/warning_dont_use_pip_in_an_untrusted_network_a/ [3] https://github.com/pypa/pip/pull/791/files [4] http://www.pip-installer.org/en/latest/logic.html#ssl-certificate-verification

Affected Software

3 affected componentsFixes available
pip/pip<1.3
1.3
redhat/python-pip<1.3
1.3
pypa pip<1.3

Event History

Aug 6, 2013
CVE Published
via MITRE·01:00 AM
Data Sourced
via MITRE·01:00 AM
Description
May 13, 2022
Advisory Published
via GitHub·01:11 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2013-1629?

CVE-2013-1629 is rated as high severity due to its potential to execute arbitrary code when pip is used insecurely.

2

How do I fix CVE-2013-1629?

To fix CVE-2013-1629, upgrade pip to version 1.3 or later.

3

What software is affected by CVE-2013-1629?

CVE-2013-1629 affects pip versions earlier than 1.3.

4

Can CVE-2013-1629 be exploited in a trusted network?

CVE-2013-1629 can still be exploited in a trusted network if malicious code is executed during the pip installation.

5

What is the impact of CVE-2013-1629?

The impact of CVE-2013-1629 includes unauthorized execution of code with root privileges if pip is used with sudo.

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