Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 26 Jul 2013 11:46:03 -0400
From: Donald Stufft <>
Subject: Re: Requesting CVE-ID(s) for Python's pip

On Jul 26, 2013, at 8:03 AM, isis agora lovecruft <> wrote:

> I would also like to request CVE assignment(s) for two issues in pip
> (, related to Donald Stufft's.
> First issue:
> ------------
>  Python's pip versions 1.4.x and earlier are vulnerable to an Arbitrary Code
>  Execution Attack due to incorrect regexp parsing of external download links
>  in the following functions in pip/
>    * PackageFinder._get_pages()
>    * PackageFinder._sort_links()
>    * PackageFinder._package_versions()
>    * PackageFinder._link_package_versions()
>  Which allow an attacker with the ability to Man-in-the-Middle external
>  package URIs (which often include external HTTP URIs, and can include the
>  module author's personal website, see
>  to specify an arbitrarily high package version number and gain code
>  execution.
>  Uptream bugtracker reports:
>  Other mentions:
>  This issue is fixed in pip>=1.5.x by Donald Stufft in the following commits:

I'm not sure I understand this one. Is this just the external urls? Technically it wasn't a problem with the regexp's they worked fine. It was just bad behavior inherited from legacy systems. 1.4.x defaults to allowing them but enables people to turn them off, 1.5.x will disallow them by default.

1.3.x and earlier allowed them and offered no way to disable them.

> Second issue:
> -------------
>  Python's pip versions 1.5.x and earlier use MD5 hashes for verification of
>  package integrity against PyPI (which defaults to providing MD5).

Strictly speaking pip doesn't default to any hash. It just uses the hash given to it. Prior to 1.2 it only allowed MD5 but since the release of 1.2 it has allowed any of the guaranteed hashes in python's hash lib.


Setuptools has also historically only allowed MD5 but has recently with version 0.9+ enabled similar abilities to setuptools to enable the use of any available hashes as well. Distribute (a fork of setuptools which has now been merged back into setuptools) only supports MD5 in it's older releases.

> These issues appear to be unrelated to Donald Stufft's CVE ID request filed
> earlier today, and additionally unrelated to the following already assigned
> CVEs:
>  * CVE-2013-1888 Pip builds in /tmp 
>  * CVE-2013-1629 Pip<1.3.0 uses a default package index without SSL
> -- 
> ♥Ⓐ isis agora lovecruft
> _________________________________________________________
> GPG: 4096R/A3ADB67A2CDB8B35
> Current Keys:

Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

Download attachment "signature.asc" of type "application/pgp-signature" (842 bytes)

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.