Python/setuptools/21.2.1


Most extensible Python build backend with support for C/C++ extension modules

https://pypi.org/project/setuptools
MIT

4 Security Vulnerabilities

setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write

Published date: 2025-05-19T16:52:43Z
CVE: CVE-2025-47273
Links:

Summary

A path traversal vulnerability in PackageIndex was fixed in setuptools version 78.1.1

Details

    def _download_url(self, url, tmpdir):
        # Determine download filename
        #
        name, _fragment = egg_info_for_url(url)
        if name:
            while '..' in name:
                name = name.replace('..', '.').replace('\\', '_')
        else:
            name = "__downloaded__"  # default if URL has no path contents

        if name.endswith('.[egg.zip](http://egg.zip/)'):
            name = name[:-4]  # strip the extra .zip before download

 -->       filename = os.path.join(tmpdir, name)

Here: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88

os.path.join() discards the first argument tmpdir if the second begins with a slash or drive letter. name is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of '..' with '.', it is insufficient.

Risk Assessment

As easyinstall and packageindex are deprecated, the exploitation surface is reduced. However, it seems this could be exploited in a similar fashion like https://github.com/advisories/GHSA-r9hx-vwmv-q579, and as described by POC 4 in https://github.com/advisories/GHSA-cx63-2mw6-8hw5 report: via malicious URLs present on the pages of a package index.

Impact

An attacker would be allowed to write files to arbitrary locations on the filesystem with the permissions of the process running the Python code, which could escalate to RCE depending on the context.

References

https://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5 https://github.com/pypa/setuptools/issues/4946

Affected versions: ["0.7.4", "0.7.6", "10.1", "0.6c7", "0.8", "0.9.4", "1.1.5", "1.4.1", "0.9.1", "0.6c11", "1.3", "0.6c8", "0.9.3", "12.0.4", "0.6b4", "0.7.5", "0.6c6", "0.6c3", "1.1", "0.6c9", "0.6c10", "1.3.2", "0.7.8", "11.0", "12.0.1", "0.7.2", "1.3.1", "12.0.2", "0.6c2", "12.0", "10.0.1", "18.6", "22.0.1", "26.0.0", "27.0.0", "27.1.2", "36.2.6", "39.1.0", "47.0.0", "18.0", "19.1.1", "2.1", "24.3.1", "26.1.1", "28.7.0", "40.9.0", "45.1.0", "5.0.1", "5.6", "11.2", "14.3.1", "18.3.1", "18.7", "24.2.0", "3.8", "36.6.0", "40.7.3", "51.3.1", "13.0.2", "18.0.1", "18.6.1", "19.1", "2.0", "2.0.2", "22.0.4", "27.3.0", "28.4.0", "3.3", "32.0.0", "32.2.0", "34.4.0", "36.7.2", "40.6.1", "46.1.1", "54.1.0", "19.6", "24.3.0", "25.1.4", "25.1.6", "28.1.0", "28.8.1", "3.8.1", "32.1.0", "35.0.1", "38.7.0", "49.0.0", "49.1.1", "49.3.1", "12.0.3", "18.7.1", "24.0.3", "34.3.1", "36.3.0", "4.0", "45.0.0", "46.1.3", "48.0.0", "49.3.0", "5.5", "5.8", "51.3.3", "18.3.2", "18.5", "19.4", "19.6.1", "28.3.0", "28.6.0", "3.6", "36.6.1", "41.0.0", "41.3.0", "42.0.2", "46.0.0", "50.1.0", "50.2.0", "51.1.0.post20201221", "8.2", "14.2", "2.1.2", "25.1.3", "31.0.1", "34.0.2", "36.7.0", "38.0.0", "38.6.0", "5.0", "6.0.2", "8.2.1", "8.3", "1.1.1", "13.0", "17.0", "21.2.0", "23.0.0", "28.6.1", "29.0.0", "3.0", "4.0.1", "41.2.0", "44.1.1", "14.0", "15.0", "32.3.0", "34.2.0", "37.0.0", "40.1.1", "40.6.2", "45.3.0", "47.1.0", "5.3", "20.3.1", "20.6.8", "28.0.0", "30.2.0", "36.0.1", "36.2.4", "47.1.1", "30.1.0", "32.1.3", "38.2.4", "38.6.1", "39.2.0", "47.2.0", "1.2", "16.0", "27.3.1", "3.1", "3.5.2", "32.3.1", "36.8.0", "41.5.0", "46.1.2", "49.2.0", "0.6c1", "0.6c4", "0.9", "0.9.5", "10.2", "12.4", "0.7.7", "21.2.2", "23.2.1", "25.2.0", "28.8.0", "3.2", "30.0.0", "34.3.2", "40.4.1", "40.4.2", "50.0.3", "51.0.0", "14.3", "15.1", "19.6.2", "20.7.0", "24.1.1", "24.2.1", "3.0.2", "3.4.1", "35.0.0", "36.2.0", "36.2.1", "38.2.3", "38.2.5", "46.1.0", "47.3.0", "49.3.2", "50.3.0", "8.0.1", "9.0.1", "1.0", "11.3.1", "18.8.1", "19.7", "25.4.0", "3.4.3", "32.1.1", "33.1.0", "36.2.5", "40.1.0", "46.4.0", "54.1.1", "8.1", "18.3", "19.2", "34.0.1", "40.4.0", "41.1.0", "46.3.0", "5.4.2", "50.0.2", "54.1.3", "0.6b2", "0.6b3", "0.9.2", "0.9.7", "1.1.2", "1.1.6", "1.4", "10.0", "11.1", "11.3", "18.1", "19.0", "22.0.2", "25.0.0", "34.4.1", "36.2.7", "40.5.0", "41.6.0", "46.2.0", "47.3.1", "49.1.2", "0.6c5", "0.9.6", "1.1.7", "18.2", "21.1.0", "22.0.0", "3.7.1", "38.3.0", "38.5.0", "39.0.0", "40.3.0", "40.4.3", "5.7", "56.0.0", "18.8", "20.6.7", "25.1.5", "3.4", "3.5", "34.0.0", "34.3.0", "36.1.1", "38.2.0", "40.7.0", "41.4.0", "5.5.1", "6.1", "8.0.2", "51.2.0", "53.0.0", "6.0.1", "14.1.1", "20.8.1", "21.0.0", "25.1.0", "25.1.1", "30.3.0", "36.1.0", "36.7.1", "40.7.2", "41.5.1", "44.1.0", "45.2.0", "47.3.2", "49.1.3", "53.1.0", "0.6b1", "0.9.8", "1.1.3", "10.2.1", "12.0.5", "17.1", "23.2.0", "28.7.1", "30.4.0", "36.2.2", "5.1", "50.3.2", "19.4.1", "2.1.1", "20.10.1", "3.4.2", "34.0.3", "40.8.0", "42.0.1", "5.4", "51.3.2", "20.1", "20.4", "20.6.6", "29.0.1", "38.2.1", "38.4.0", "40.6.0", "40.6.3", "40.7.1", "42.0.0", "5.2", "5.4.1", "18.4", "2.0.1", "20.2.2", "20.9.0", "3.7", "39.0.1", "43.0.0", "49.2.1", "49.4.0", "51.1.1", "1.4.2", "12.1", "12.2", "13.0.1", "14.1", "22.0.5", "24.0.0", "24.1.0", "15.2", "19.5", "25.3.0", "28.2.0", "33.1.1", "36.2.3", "51.1.2", "8.0.3", "9.1", "23.1.0", "25.0.2", "3.5.1", "30.2.1", "38.5.1", "49.6.0", "50.0.1", "54.2.0", "8.0", "9.0", "17.1.1", "19.3", "21.2.1", "25.1.2", "27.1.0", "27.2.0", "3.4.4", "38.5.2", "44.0.0", "49.5.0", "52.0.0", "54.1.2", "26.1.0", "31.0.0", "32.1.2", "34.3.3", "40.2.0", "41.0.1", "0.7.3", "1.1.4", "12.3", "20.3", "24.0.1", "28.5.0", "34.1.0", "36.5.0", "38.4.1", "49.0.1", "49.1.0", "50.0.0", "51.1.0", "2.2", "20.0", "20.8.0", "3.0.1", "34.1.1", "54.0.0", "7.0", "8.0.4", "5.0.2", "50.3.1", "51.3.0", "20.1.1", "24.0.2", "25.0.1", "35.0.2", "36.4.0", "38.1.0", "40.0.0", "46.3.1", "56.1.0", "56.2.0", "57.0.0", "57.1.0", "57.2.0", "57.3.0", "57.4.0", "57.5.0", "58.0.2", "58.0.1", "58.0.0", "58.0.3", "58.0.4", "58.1.0", "58.2.0", "58.3.0", "58.4.0", "58.5.0", "58.5.1", "58.5.2", "58.5.3", "59.1.0", "59.0.1", "59.1.1", "59.2.0", "59.3.0", "59.4.0", "59.5.0", "59.6.0", "59.7.0", "60.0.0", "59.8.0", "60.0.3", "60.0.2", "60.0.1", "60.0.4", "60.1.0", "60.0.5", "60.1.1", "60.2.0", "60.3.0", "60.3.1", "60.4.0", "60.5.0", "60.6.0", "60.7.0", "60.7.1", "60.8.0", "60.8.1", "60.8.2", "60.9.0", "60.9.1", "60.9.2", "60.9.3", "60.10.0", "61.0.0", "61.1.0", "61.2.0", "61.1.1", "61.3.0", "61.3.1", "62.0.0", "62.1.0", "62.2.0", "62.3.0", "62.3.1", "62.3.2", "62.3.3", "62.3.4", "62.4.0", "62.5.0", "62.6.0", "63.0.0b1", "63.0.0", "63.1.0", "63.2.0", "63.3.0", "63.4.0", "63.4.1", "63.4.2", "63.4.3", "64.0.0", "64.0.1", "64.0.3", "64.0.2", "65.0.0", "65.0.1", "65.0.2", "65.1.0", "65.1.1", "65.2.0", "65.3.0", "65.4.0", "65.4.1", "65.5.0", "65.5.1", "65.6.0", "65.6.1", "65.6.3", "65.6.2", "65.7.0", "66.0.0", "66.1.1", "66.1.0", "67.0.0", "67.1.0", "67.2.0", "67.3.1", "67.3.2", "67.3.3", "67.4.0", "67.5.0", "67.5.1", "67.6.0", "67.6.1", "67.7.0", "67.7.1", "67.7.2", "67.8.0", "68.0.0", "68.1.0", "68.1.2", "68.2.0", "68.2.1", "68.2.2", "69.0.0", "69.0.1", "69.0.2", "69.0.3", "69.1.0", "69.1.1", "69.2.0", "69.4.0", "69.3.0", "69.4.2", "69.4.1", "69.3.1", "69.5.0", "69.5.1", "70.0.0", "70.1.0", "70.1.1", "70.2.0", "70.3.0", "71.0.1", "71.0.0", "71.0.3", "71.0.2", "71.0.4", "71.1.0", "72.0.0", "72.1.0", "72.2.0", "73.0.0", "73.0.1", "74.0.0", "74.1.0", "74.1.1", "74.1.2", "75.0.0", "74.1.3", "75.1.0", "75.2.0", "75.3.0", "75.4.0", "75.5.0", "75.6.0", "75.7.0", "75.8.0", "75.8.1", "75.8.2", "75.9.1", "75.9.0", "76.0.0", "75.3.1", "75.3.2", "76.1.0", "77.0.1", "77.0.3", "78.0.1", "78.0.2", "78.1.0", "75.3.3", "75.3.4"]
Secure versions: [83.0.0]
Recommendation: Update to version 83.0.0.

setuptools vulnerable to Command Injection via package URL

Published date: 2024-07-15T03:30:57Z
CVE: CVE-2024-6345
Links:

A vulnerability in the package_index module of pypa/setuptools versions up to 69.1.1 allows for remote code execution via its download functions. These functions, which are used to download packages from URLs provided by users or retrieved from package index servers, are susceptible to code injection. If these functions are exposed to user-controlled inputs, such as package URLs, they can execute arbitrary commands on the system. The issue is fixed in version 70.0.

Affected versions: ["0.7.4", "0.7.6", "10.1", "0.6c7", "0.8", "0.9.4", "1.1.5", "1.4.1", "0.9.1", "0.6c11", "1.3", "0.6c8", "0.9.3", "12.0.4", "0.6b4", "0.7.5", "0.6c6", "0.6c3", "1.1", "0.6c9", "0.6c10", "1.3.2", "0.7.8", "11.0", "12.0.1", "0.7.2", "1.3.1", "12.0.2", "0.6c2", "12.0", "10.0.1", "18.6", "22.0.1", "26.0.0", "27.0.0", "27.1.2", "36.2.6", "39.1.0", "47.0.0", "18.0", "19.1.1", "2.1", "24.3.1", "26.1.1", "28.7.0", "40.9.0", "45.1.0", "5.0.1", "5.6", "11.2", "14.3.1", "18.3.1", "18.7", "24.2.0", "3.8", "36.6.0", "40.7.3", "51.3.1", "13.0.2", "18.0.1", "18.6.1", "19.1", "2.0", "2.0.2", "22.0.4", "27.3.0", "28.4.0", "3.3", "32.0.0", "32.2.0", "34.4.0", "36.7.2", "40.6.1", "46.1.1", "54.1.0", "19.6", "24.3.0", "25.1.4", "25.1.6", "28.1.0", "28.8.1", "3.8.1", "32.1.0", "35.0.1", "38.7.0", "49.0.0", "49.1.1", "49.3.1", "12.0.3", "18.7.1", "24.0.3", "34.3.1", "36.3.0", "4.0", "45.0.0", "46.1.3", "48.0.0", "49.3.0", "5.5", "5.8", "51.3.3", "18.3.2", "18.5", "19.4", "19.6.1", "28.3.0", "28.6.0", "3.6", "36.6.1", "41.0.0", "41.3.0", "42.0.2", "46.0.0", "50.1.0", "50.2.0", "51.1.0.post20201221", "8.2", "14.2", "2.1.2", "25.1.3", "31.0.1", "34.0.2", "36.7.0", "38.0.0", "38.6.0", "5.0", "6.0.2", "8.2.1", "8.3", "1.1.1", "13.0", "17.0", "21.2.0", "23.0.0", "28.6.1", "29.0.0", "3.0", "4.0.1", "41.2.0", "44.1.1", "14.0", "15.0", "32.3.0", "34.2.0", "37.0.0", "40.1.1", "40.6.2", "45.3.0", "47.1.0", "5.3", "20.3.1", "20.6.8", "28.0.0", "30.2.0", "36.0.1", "36.2.4", "47.1.1", "30.1.0", "32.1.3", "38.2.4", "38.6.1", "39.2.0", "47.2.0", "1.2", "16.0", "27.3.1", "3.1", "3.5.2", "32.3.1", "36.8.0", "41.5.0", "46.1.2", "49.2.0", "0.6c1", "0.6c4", "0.9", "0.9.5", "10.2", "12.4", "0.7.7", "21.2.2", "23.2.1", "25.2.0", "28.8.0", "3.2", "30.0.0", "34.3.2", "40.4.1", "40.4.2", "50.0.3", "51.0.0", "14.3", "15.1", "19.6.2", "20.7.0", "24.1.1", "24.2.1", "3.0.2", "3.4.1", "35.0.0", "36.2.0", "36.2.1", "38.2.3", "38.2.5", "46.1.0", "47.3.0", "49.3.2", "50.3.0", "8.0.1", "9.0.1", "1.0", "11.3.1", "18.8.1", "19.7", "25.4.0", "3.4.3", "32.1.1", "33.1.0", "36.2.5", "40.1.0", "46.4.0", "54.1.1", "8.1", "18.3", "19.2", "34.0.1", "40.4.0", "41.1.0", "46.3.0", "5.4.2", "50.0.2", "54.1.3", "0.6b2", "0.6b3", "0.9.2", "0.9.7", "1.1.2", "1.1.6", "1.4", "10.0", "11.1", "11.3", "18.1", "19.0", "22.0.2", "25.0.0", "34.4.1", "36.2.7", "40.5.0", "41.6.0", "46.2.0", "47.3.1", "49.1.2", "0.6c5", "0.9.6", "1.1.7", "18.2", "21.1.0", "22.0.0", "3.7.1", "38.3.0", "38.5.0", "39.0.0", "40.3.0", "40.4.3", "5.7", "56.0.0", "18.8", "20.6.7", "25.1.5", "3.4", "3.5", "34.0.0", "34.3.0", "36.1.1", "38.2.0", "40.7.0", "41.4.0", "5.5.1", "6.1", "8.0.2", "51.2.0", "53.0.0", "6.0.1", "14.1.1", "20.8.1", "21.0.0", "25.1.0", "25.1.1", "30.3.0", "36.1.0", "36.7.1", "40.7.2", "41.5.1", "44.1.0", "45.2.0", "47.3.2", "49.1.3", "53.1.0", "0.6b1", "0.9.8", "1.1.3", "10.2.1", "12.0.5", "17.1", "23.2.0", "28.7.1", "30.4.0", "36.2.2", "5.1", "50.3.2", "19.4.1", "2.1.1", "20.10.1", "3.4.2", "34.0.3", "40.8.0", "42.0.1", "5.4", "51.3.2", "20.1", "20.4", "20.6.6", "29.0.1", "38.2.1", "38.4.0", "40.6.0", "40.6.3", "40.7.1", "42.0.0", "5.2", "5.4.1", "18.4", "2.0.1", "20.2.2", "20.9.0", "3.7", "39.0.1", "43.0.0", "49.2.1", "49.4.0", "51.1.1", "1.4.2", "12.1", "12.2", "13.0.1", "14.1", "22.0.5", "24.0.0", "24.1.0", "15.2", "19.5", "25.3.0", "28.2.0", "33.1.1", "36.2.3", "51.1.2", "8.0.3", "9.1", "23.1.0", "25.0.2", "3.5.1", "30.2.1", "38.5.1", "49.6.0", "50.0.1", "54.2.0", "8.0", "9.0", "17.1.1", "19.3", "21.2.1", "25.1.2", "27.1.0", "27.2.0", "3.4.4", "38.5.2", "44.0.0", "49.5.0", "52.0.0", "54.1.2", "26.1.0", "31.0.0", "32.1.2", "34.3.3", "40.2.0", "41.0.1", "0.7.3", "1.1.4", "12.3", "20.3", "24.0.1", "28.5.0", "34.1.0", "36.5.0", "38.4.1", "49.0.1", "49.1.0", "50.0.0", "51.1.0", "2.2", "20.0", "20.8.0", "3.0.1", "34.1.1", "54.0.0", "7.0", "8.0.4", "5.0.2", "50.3.1", "51.3.0", "20.1.1", "24.0.2", "25.0.1", "35.0.2", "36.4.0", "38.1.0", "40.0.0", "46.3.1", "56.1.0", "56.2.0", "57.0.0", "57.1.0", "57.2.0", "57.3.0", "57.4.0", "57.5.0", "58.0.2", "58.0.1", "58.0.0", "58.0.3", "58.0.4", "58.1.0", "58.2.0", "58.3.0", "58.4.0", "58.5.0", "58.5.1", "58.5.2", "58.5.3", "59.1.0", "59.0.1", "59.1.1", "59.2.0", "59.3.0", "59.4.0", "59.5.0", "59.6.0", "59.7.0", "60.0.0", "59.8.0", "60.0.3", "60.0.2", "60.0.1", "60.0.4", "60.1.0", "60.0.5", "60.1.1", "60.2.0", "60.3.0", "60.3.1", "60.4.0", "60.5.0", "60.6.0", "60.7.0", "60.7.1", "60.8.0", "60.8.1", "60.8.2", "60.9.0", "60.9.1", "60.9.2", "60.9.3", "60.10.0", "61.0.0", "61.1.0", "61.2.0", "61.1.1", "61.3.0", "61.3.1", "62.0.0", "62.1.0", "62.2.0", "62.3.0", "62.3.1", "62.3.2", "62.3.3", "62.3.4", "62.4.0", "62.5.0", "62.6.0", "63.0.0b1", "63.0.0", "63.1.0", "63.2.0", "63.3.0", "63.4.0", "63.4.1", "63.4.2", "63.4.3", "64.0.0", "64.0.1", "64.0.3", "64.0.2", "65.0.0", "65.0.1", "65.0.2", "65.1.0", "65.1.1", "65.2.0", "65.3.0", "65.4.0", "65.4.1", "65.5.0", "65.5.1", "65.6.0", "65.6.1", "65.6.3", "65.6.2", "65.7.0", "66.0.0", "66.1.1", "66.1.0", "67.0.0", "67.1.0", "67.2.0", "67.3.1", "67.3.2", "67.3.3", "67.4.0", "67.5.0", "67.5.1", "67.6.0", "67.6.1", "67.7.0", "67.7.1", "67.7.2", "67.8.0", "68.0.0", "68.1.0", "68.1.2", "68.2.0", "68.2.1", "68.2.2", "69.0.0", "69.0.1", "69.0.2", "69.0.3", "69.1.0", "69.1.1", "69.2.0", "69.4.0", "69.3.0", "69.4.2", "69.4.1", "69.3.1", "69.5.0", "69.5.1"]
Secure versions: [83.0.0]
Recommendation: Update to version 83.0.0.

setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+

Published date: 2026-07-21T19:09:21Z
CVE: CVE-2026-59890
Links:

Summary

When building a source distribution (python -m build --sdist / setup.py sdist), setuptools' FileList applies MANIFEST.in directives (exclude, global-exclude, recursive-exclude, prune) by matching a compiled glob against on-disk file names byte-for-byte, with no Unicode normalization. On normalization-preserving filesystems (notably macOS APFS and HFS+), a file written in NFD and a MANIFEST.in rule written in NFC refer to the same file but are byte-distinct, so the exclusion silently fails to match. A file the maintainer intended to exclude is then packed into the .tar.gz and, if published, uploaded to the public, immutable PyPI index.

Details

File names in FileList.files come from os.walk (setuptools/_distutils/filelist.py, _find_all_simple), so on APFS a file written NFD is offered to the matcher in NFD, while the MANIFEST.in pattern carries the author's editor form (typically NFC). The matching path performs no canonicalization:

# setuptools/command/egg_info.py  (FileList.global_exclude)
def global_exclude(self, pattern):
    match = translate_pattern(os.path.join('**', pattern))   # fnmatch.translate -> regex, no NFC/NFD
    return self._remove_files(match.match)                   # byte-level regex over raw os.walk names

A rule written NFC (café = 63 61 66 c3 a9) does not match an on-disk name written NFD (café = 63 61 66 65 cc 81), even though the filesystem treats the two as one file.

A unicodedata.normalize('NFD', ...) helper exists in setuptools/unicode_utils.py (decompose()), but it is never called in the manifest matching path, so neither the pattern nor the walked path is normalized before matching. The only normalization in this area, EggInfoCommand._manifest_normalize, uses filesys_decode (bytes→str decode only, no NFC/NFD) and runs when writing SOURCES.txt, after matching has already occurred.

Impact

MANIFEST.in exclusions are the documented mechanism maintainers use to keep secrets, local configs, and private fixtures out of the published sdist. A non-ASCII excluded file may be published to the public, immutable PyPI index despite the rule — an irreversible disclosure with no visual cue (NFC and NFD forms render identically). Exposure is filesystem-dependent and most relevant on macOS APFS/HFS+, where many maintainers build and publish. Pure-ASCII rules are unaffected.

Proof of concept

With a project containing MANIFEST.in:

global-include *.txt *.json
global-exclude secret_café.txt    # rule saved NFC

and an on-disk file secret_café.txt written in NFD, python -m build --sdist packs the secret file into the resulting .tar.gz, while an ASCII control file excluded by the same directive is correctly dropped — isolating the bypass to the NFC-pattern vs. NFD-name mismatch. Reproduced on macOS APFS with setuptools 82.0.1.

Remediation

Normalize both the walked path and each MANIFEST.in pattern to a single canonical form before matching, in both setuptools/command/egg_info.py (FileList) and the vendored setuptools/_distutils/filelist.py. For an exclusion list, err toward excluding more, and document that MANIFEST.in matching is normalization-insensitive on macOS.

Credit

Reported by Tomas Illuminati. Coordinated via CERT/CC VINCE VU#604762.

Affected versions: ["0.7.4", "0.7.6", "10.1", "0.6c7", "0.8", "0.9.4", "1.1.5", "1.4.1", "0.9.1", "0.6c11", "1.3", "0.6c8", "0.9.3", "12.0.4", "0.6b4", "0.7.5", "0.6c6", "0.6c3", "1.1", "0.6c9", "0.6c10", "1.3.2", "0.7.8", "11.0", "12.0.1", "0.7.2", "1.3.1", "12.0.2", "0.6c2", "12.0", "10.0.1", "18.6", "22.0.1", "26.0.0", "27.0.0", "27.1.2", "36.2.6", "39.1.0", "47.0.0", "18.0", "19.1.1", "2.1", "24.3.1", "26.1.1", "28.7.0", "40.9.0", "45.1.0", "5.0.1", "5.6", "11.2", "14.3.1", "18.3.1", "18.7", "24.2.0", "3.8", "36.6.0", "40.7.3", "51.3.1", "13.0.2", "18.0.1", "18.6.1", "19.1", "2.0", "2.0.2", "22.0.4", "27.3.0", "28.4.0", "3.3", "32.0.0", "32.2.0", "34.4.0", "36.7.2", "40.6.1", "46.1.1", "54.1.0", "19.6", "24.3.0", "25.1.4", "25.1.6", "28.1.0", "28.8.1", "3.8.1", "32.1.0", "35.0.1", "38.7.0", "49.0.0", "49.1.1", "49.3.1", "12.0.3", "18.7.1", "24.0.3", "34.3.1", "36.3.0", "4.0", "45.0.0", "46.1.3", "48.0.0", "49.3.0", "5.5", "5.8", "51.3.3", "18.3.2", "18.5", "19.4", "19.6.1", "28.3.0", "28.6.0", "3.6", "36.6.1", "41.0.0", "41.3.0", "42.0.2", "46.0.0", "50.1.0", "50.2.0", "51.1.0.post20201221", "8.2", "14.2", "2.1.2", "25.1.3", "31.0.1", "34.0.2", "36.7.0", "38.0.0", "38.6.0", "5.0", "6.0.2", "8.2.1", "8.3", "1.1.1", "13.0", "17.0", "21.2.0", "23.0.0", "28.6.1", "29.0.0", "3.0", "4.0.1", "41.2.0", "44.1.1", "14.0", "15.0", "32.3.0", "34.2.0", "37.0.0", "40.1.1", "40.6.2", "45.3.0", "47.1.0", "5.3", "20.3.1", "20.6.8", "28.0.0", "30.2.0", "36.0.1", "36.2.4", "47.1.1", "30.1.0", "32.1.3", "38.2.4", "38.6.1", "39.2.0", "47.2.0", "1.2", "16.0", "27.3.1", "3.1", "3.5.2", "32.3.1", "36.8.0", "41.5.0", "46.1.2", "49.2.0", "0.6c1", "0.6c4", "0.9", "0.9.5", "10.2", "12.4", "0.7.7", "21.2.2", "23.2.1", "25.2.0", "28.8.0", "3.2", "30.0.0", "34.3.2", "40.4.1", "40.4.2", "50.0.3", "51.0.0", "14.3", "15.1", "19.6.2", "20.7.0", "24.1.1", "24.2.1", "3.0.2", "3.4.1", "35.0.0", "36.2.0", "36.2.1", "38.2.3", "38.2.5", "46.1.0", "47.3.0", "49.3.2", "50.3.0", "8.0.1", "9.0.1", "1.0", "11.3.1", "18.8.1", "19.7", "25.4.0", "3.4.3", "32.1.1", "33.1.0", "36.2.5", "40.1.0", "46.4.0", "54.1.1", "8.1", "18.3", "19.2", "34.0.1", "40.4.0", "41.1.0", "46.3.0", "5.4.2", "50.0.2", "54.1.3", "0.6b2", "0.6b3", "0.9.2", "0.9.7", "1.1.2", "1.1.6", "1.4", "10.0", "11.1", "11.3", "18.1", "19.0", "22.0.2", "25.0.0", "34.4.1", "36.2.7", "40.5.0", "41.6.0", "46.2.0", "47.3.1", "49.1.2", "0.6c5", "0.9.6", "1.1.7", "18.2", "21.1.0", "22.0.0", "3.7.1", "38.3.0", "38.5.0", "39.0.0", "40.3.0", "40.4.3", "5.7", "56.0.0", "18.8", "20.6.7", "25.1.5", "3.4", "3.5", "34.0.0", "34.3.0", "36.1.1", "38.2.0", "40.7.0", "41.4.0", "5.5.1", "6.1", "8.0.2", "51.2.0", "53.0.0", "6.0.1", "14.1.1", "20.8.1", "21.0.0", "25.1.0", "25.1.1", "30.3.0", "36.1.0", "36.7.1", "40.7.2", "41.5.1", "44.1.0", "45.2.0", "47.3.2", "49.1.3", "53.1.0", "0.6b1", "0.9.8", "1.1.3", "10.2.1", "12.0.5", "17.1", "23.2.0", "28.7.1", "30.4.0", "36.2.2", "5.1", "50.3.2", "19.4.1", "2.1.1", "20.10.1", "3.4.2", "34.0.3", "40.8.0", "42.0.1", "5.4", "51.3.2", "20.1", "20.4", "20.6.6", "29.0.1", "38.2.1", "38.4.0", "40.6.0", "40.6.3", "40.7.1", "42.0.0", "5.2", "5.4.1", "18.4", "2.0.1", "20.2.2", "20.9.0", "3.7", "39.0.1", "43.0.0", "49.2.1", "49.4.0", "51.1.1", "1.4.2", "12.1", "12.2", "13.0.1", "14.1", "22.0.5", "24.0.0", "24.1.0", "15.2", "19.5", "25.3.0", "28.2.0", "33.1.1", "36.2.3", "51.1.2", "8.0.3", "9.1", "23.1.0", "25.0.2", "3.5.1", "30.2.1", "38.5.1", "49.6.0", "50.0.1", "54.2.0", "8.0", "9.0", "17.1.1", "19.3", "21.2.1", "25.1.2", "27.1.0", "27.2.0", "3.4.4", "38.5.2", "44.0.0", "49.5.0", "52.0.0", "54.1.2", "26.1.0", "31.0.0", "32.1.2", "34.3.3", "40.2.0", "41.0.1", "0.7.3", "1.1.4", "12.3", "20.3", "24.0.1", "28.5.0", "34.1.0", "36.5.0", "38.4.1", "49.0.1", "49.1.0", "50.0.0", "51.1.0", "2.2", "20.0", "20.8.0", "3.0.1", "34.1.1", "54.0.0", "7.0", "8.0.4", "5.0.2", "50.3.1", "51.3.0", "20.1.1", "24.0.2", "25.0.1", "35.0.2", "36.4.0", "38.1.0", "40.0.0", "46.3.1", "56.1.0", "56.2.0", "57.0.0", "57.1.0", "57.2.0", "57.3.0", "57.4.0", "57.5.0", "58.0.2", "58.0.1", "58.0.0", "58.0.3", "58.0.4", "58.1.0", "58.2.0", "58.3.0", "58.4.0", "58.5.0", "58.5.1", "58.5.2", "58.5.3", "59.1.0", "59.0.1", "59.1.1", "59.2.0", "59.3.0", "59.4.0", "59.5.0", "59.6.0", "59.7.0", "60.0.0", "59.8.0", "60.0.3", "60.0.2", "60.0.1", "60.0.4", "60.1.0", "60.0.5", "60.1.1", "60.2.0", "60.3.0", "60.3.1", "60.4.0", "60.5.0", "60.6.0", "60.7.0", "60.7.1", "60.8.0", "60.8.1", "60.8.2", "60.9.0", "60.9.1", "60.9.2", "60.9.3", "60.10.0", "61.0.0", "61.1.0", "61.2.0", "61.1.1", "61.3.0", "61.3.1", "62.0.0", "62.1.0", "62.2.0", "62.3.0", "62.3.1", "62.3.2", "62.3.3", "62.3.4", "62.4.0", "62.5.0", "62.6.0", "63.0.0b1", "63.0.0", "63.1.0", "63.2.0", "63.3.0", "63.4.0", "63.4.1", "63.4.2", "63.4.3", "64.0.0", "64.0.1", "64.0.3", "64.0.2", "65.0.0", "65.0.1", "65.0.2", "65.1.0", "65.1.1", "65.2.0", "65.3.0", "65.4.0", "65.4.1", "65.5.0", "65.5.1", "65.6.0", "65.6.1", "65.6.3", "65.6.2", "65.7.0", "66.0.0", "66.1.1", "66.1.0", "67.0.0", "67.1.0", "67.2.0", "67.3.1", "67.3.2", "67.3.3", "67.4.0", "67.5.0", "67.5.1", "67.6.0", "67.6.1", "67.7.0", "67.7.1", "67.7.2", "67.8.0", "68.0.0", "68.1.0", "68.1.2", "68.2.0", "68.2.1", "68.2.2", "69.0.0", "69.0.1", "69.0.2", "69.0.3", "69.1.0", "69.1.1", "69.2.0", "69.4.0", "69.3.0", "69.4.2", "69.4.1", "69.3.1", "69.5.0", "69.5.1", "70.0.0", "70.1.0", "70.1.1", "70.2.0", "70.3.0", "71.0.1", "71.0.0", "71.0.3", "71.0.2", "71.0.4", "71.1.0", "72.0.0", "72.1.0", "72.2.0", "73.0.0", "73.0.1", "74.0.0", "74.1.0", "74.1.1", "74.1.2", "75.0.0", "74.1.3", "75.1.0", "75.2.0", "75.3.0", "75.4.0", "75.5.0", "75.6.0", "75.7.0", "75.8.0", "75.8.1", "75.8.2", "75.9.1", "75.9.0", "76.0.0", "75.3.1", "75.3.2", "76.1.0", "77.0.1", "77.0.3", "78.0.1", "78.0.2", "78.1.0", "78.1.1", "79.0.0", "79.0.1", "80.0.0", "80.0.1", "80.1.0", "80.2.0", "80.3.0", "80.3.1", "80.4.0", "80.6.0", "80.7.1", "80.7.0", "80.8.0", "80.9.0", "75.3.3", "80.10.1", "80.10.2", "81.0.0", "75.3.4", "82.0.0", "82.0.1"]
Secure versions: [83.0.0]
Recommendation: Update to version 83.0.0.

pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)

Published date: 2022-12-23T00:30:23Z
CVE: CVE-2022-40897
Links:

Python Packaging Authority (PyPA)'s setuptools is a library designed to facilitate packaging Python projects. Setuptools version 65.5.0 and earlier could allow remote attackers to cause a denial of service by fetching malicious HTML from a PyPI package or custom PackageIndex page due to a vulnerable Regular Expression in package_index. This has been patched in version 65.5.1.

Affected versions: ["0.7.4", "0.7.6", "10.1", "0.6c7", "0.8", "0.9.4", "1.1.5", "1.4.1", "0.9.1", "0.6c11", "1.3", "0.6c8", "0.9.3", "12.0.4", "0.6b4", "0.7.5", "0.6c6", "0.6c3", "1.1", "0.6c9", "0.6c10", "1.3.2", "0.7.8", "11.0", "12.0.1", "0.7.2", "1.3.1", "12.0.2", "0.6c2", "12.0", "10.0.1", "18.6", "22.0.1", "26.0.0", "27.0.0", "27.1.2", "36.2.6", "39.1.0", "47.0.0", "18.0", "19.1.1", "2.1", "24.3.1", "26.1.1", "28.7.0", "40.9.0", "45.1.0", "5.0.1", "5.6", "11.2", "14.3.1", "18.3.1", "18.7", "24.2.0", "3.8", "36.6.0", "40.7.3", "51.3.1", "13.0.2", "18.0.1", "18.6.1", "19.1", "2.0", "2.0.2", "22.0.4", "27.3.0", "28.4.0", "3.3", "32.0.0", "32.2.0", "34.4.0", "36.7.2", "40.6.1", "46.1.1", "54.1.0", "19.6", "24.3.0", "25.1.4", "25.1.6", "28.1.0", "28.8.1", "3.8.1", "32.1.0", "35.0.1", "38.7.0", "49.0.0", "49.1.1", "49.3.1", "12.0.3", "18.7.1", "24.0.3", "34.3.1", "36.3.0", "4.0", "45.0.0", "46.1.3", "48.0.0", "49.3.0", "5.5", "5.8", "51.3.3", "18.3.2", "18.5", "19.4", "19.6.1", "28.3.0", "28.6.0", "3.6", "36.6.1", "41.0.0", "41.3.0", "42.0.2", "46.0.0", "50.1.0", "50.2.0", "51.1.0.post20201221", "8.2", "14.2", "2.1.2", "25.1.3", "31.0.1", "34.0.2", "36.7.0", "38.0.0", "38.6.0", "5.0", "6.0.2", "8.2.1", "8.3", "1.1.1", "13.0", "17.0", "21.2.0", "23.0.0", "28.6.1", "29.0.0", "3.0", "4.0.1", "41.2.0", "44.1.1", "14.0", "15.0", "32.3.0", "34.2.0", "37.0.0", "40.1.1", "40.6.2", "45.3.0", "47.1.0", "5.3", "20.3.1", "20.6.8", "28.0.0", "30.2.0", "36.0.1", "36.2.4", "47.1.1", "30.1.0", "32.1.3", "38.2.4", "38.6.1", "39.2.0", "47.2.0", "1.2", "16.0", "27.3.1", "3.1", "3.5.2", "32.3.1", "36.8.0", "41.5.0", "46.1.2", "49.2.0", "0.6c1", "0.6c4", "0.9", "0.9.5", "10.2", "12.4", "0.7.7", "21.2.2", "23.2.1", "25.2.0", "28.8.0", "3.2", "30.0.0", "34.3.2", "40.4.1", "40.4.2", "50.0.3", "51.0.0", "14.3", "15.1", "19.6.2", "20.7.0", "24.1.1", "24.2.1", "3.0.2", "3.4.1", "35.0.0", "36.2.0", "36.2.1", "38.2.3", "38.2.5", "46.1.0", "47.3.0", "49.3.2", "50.3.0", "8.0.1", "9.0.1", "1.0", "11.3.1", "18.8.1", "19.7", "25.4.0", "3.4.3", "32.1.1", "33.1.0", "36.2.5", "40.1.0", "46.4.0", "54.1.1", "8.1", "18.3", "19.2", "34.0.1", "40.4.0", "41.1.0", "46.3.0", "5.4.2", "50.0.2", "54.1.3", "0.6b2", "0.6b3", "0.9.2", "0.9.7", "1.1.2", "1.1.6", "1.4", "10.0", "11.1", "11.3", "18.1", "19.0", "22.0.2", "25.0.0", "34.4.1", "36.2.7", "40.5.0", "41.6.0", "46.2.0", "47.3.1", "49.1.2", "0.6c5", "0.9.6", "1.1.7", "18.2", "21.1.0", "22.0.0", "3.7.1", "38.3.0", "38.5.0", "39.0.0", "40.3.0", "40.4.3", "5.7", "56.0.0", "18.8", "20.6.7", "25.1.5", "3.4", "3.5", "34.0.0", "34.3.0", "36.1.1", "38.2.0", "40.7.0", "41.4.0", "5.5.1", "6.1", "8.0.2", "51.2.0", "53.0.0", "6.0.1", "14.1.1", "20.8.1", "21.0.0", "25.1.0", "25.1.1", "30.3.0", "36.1.0", "36.7.1", "40.7.2", "41.5.1", "44.1.0", "45.2.0", "47.3.2", "49.1.3", "53.1.0", "0.6b1", "0.9.8", "1.1.3", "10.2.1", "12.0.5", "17.1", "23.2.0", "28.7.1", "30.4.0", "36.2.2", "5.1", "50.3.2", "19.4.1", "2.1.1", "20.10.1", "3.4.2", "34.0.3", "40.8.0", "42.0.1", "5.4", "51.3.2", "20.1", "20.4", "20.6.6", "29.0.1", "38.2.1", "38.4.0", "40.6.0", "40.6.3", "40.7.1", "42.0.0", "5.2", "5.4.1", "18.4", "2.0.1", "20.2.2", "20.9.0", "3.7", "39.0.1", "43.0.0", "49.2.1", "49.4.0", "51.1.1", "1.4.2", "12.1", "12.2", "13.0.1", "14.1", "22.0.5", "24.0.0", "24.1.0", "15.2", "19.5", "25.3.0", "28.2.0", "33.1.1", "36.2.3", "51.1.2", "8.0.3", "9.1", "23.1.0", "25.0.2", "3.5.1", "30.2.1", "38.5.1", "49.6.0", "50.0.1", "54.2.0", "8.0", "9.0", "17.1.1", "19.3", "21.2.1", "25.1.2", "27.1.0", "27.2.0", "3.4.4", "38.5.2", "44.0.0", "49.5.0", "52.0.0", "54.1.2", "26.1.0", "31.0.0", "32.1.2", "34.3.3", "40.2.0", "41.0.1", "0.7.3", "1.1.4", "12.3", "20.3", "24.0.1", "28.5.0", "34.1.0", "36.5.0", "38.4.1", "49.0.1", "49.1.0", "50.0.0", "51.1.0", "2.2", "20.0", "20.8.0", "3.0.1", "34.1.1", "54.0.0", "7.0", "8.0.4", "5.0.2", "50.3.1", "51.3.0", "20.1.1", "24.0.2", "25.0.1", "35.0.2", "36.4.0", "38.1.0", "40.0.0", "46.3.1", "56.1.0", "56.2.0", "57.0.0", "57.1.0", "57.2.0", "57.3.0", "57.4.0", "57.5.0", "58.0.2", "58.0.1", "58.0.0", "58.0.3", "58.0.4", "58.1.0", "58.2.0", "58.3.0", "58.4.0", "58.5.0", "58.5.1", "58.5.2", "58.5.3", "59.1.0", "59.0.1", "59.1.1", "59.2.0", "59.3.0", "59.4.0", "59.5.0", "59.6.0", "59.7.0", "60.0.0", "59.8.0", "60.0.3", "60.0.2", "60.0.1", "60.0.4", "60.1.0", "60.0.5", "60.1.1", "60.2.0", "60.3.0", "60.3.1", "60.4.0", "60.5.0", "60.6.0", "60.7.0", "60.7.1", "60.8.0", "60.8.1", "60.8.2", "60.9.0", "60.9.1", "60.9.2", "60.9.3", "60.10.0", "61.0.0", "61.1.0", "61.2.0", "61.1.1", "61.3.0", "61.3.1", "62.0.0", "62.1.0", "62.2.0", "62.3.0", "62.3.1", "62.3.2", "62.3.3", "62.3.4", "62.4.0", "62.5.0", "62.6.0", "63.0.0b1", "63.0.0", "63.1.0", "63.2.0", "63.3.0", "63.4.0", "63.4.1", "63.4.2", "63.4.3", "64.0.0", "64.0.1", "64.0.3", "64.0.2", "65.0.0", "65.0.1", "65.0.2", "65.1.0", "65.1.1", "65.2.0", "65.3.0", "65.4.0", "65.4.1", "65.5.0"]
Secure versions: [83.0.0]
Recommendation: Update to version 83.0.0.

624 Other Versions

Version License Security Released
83.0.0 UNKNOWN
82.0.1 UNKNOWN 1
82.0.0 UNKNOWN 1
81.0.0 UNKNOWN 1
80.10.2 UNKNOWN 1
80.10.1 UNKNOWN 1
80.9.0 UNKNOWN 1
80.8.0 UNKNOWN 1
80.7.1 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.7.0 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.6.0 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.4.0 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.3.1 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.3.0 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.2.0 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.1.0 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.0.1 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
80.0.0 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
79.0.1 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
79.0.0 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
78.1.1 UNKNOWN 1 1970-01-01 - 00:00 over 56 years
78.1.0 MIT 2 1970-01-01 - 00:00 over 56 years
78.0.2 MIT 2 1970-01-01 - 00:00 over 56 years
78.0.1 MIT 2 1970-01-01 - 00:00 over 56 years
77.0.3 MIT 2 1970-01-01 - 00:00 over 56 years
77.0.1 MIT 2 1970-01-01 - 00:00 over 56 years
76.1.0 MIT 2 1970-01-01 - 00:00 over 56 years
76.0.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.9.1 MIT 2 1970-01-01 - 00:00 over 56 years
75.9.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.8.2 MIT 2 1970-01-01 - 00:00 over 56 years
75.8.1 MIT 2 1970-01-01 - 00:00 over 56 years
75.8.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.7.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.6.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.5.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.4.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.3.4 MIT 2
75.3.3 MIT 2
75.3.2 MIT 2 1970-01-01 - 00:00 over 56 years
75.3.1 MIT 2 1970-01-01 - 00:00 over 56 years
75.3.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.2.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.1.0 MIT 2 1970-01-01 - 00:00 over 56 years
75.0.0 MIT 2 1970-01-01 - 00:00 over 56 years
74.1.3 MIT 2 1970-01-01 - 00:00 over 56 years
74.1.2 MIT 2 1970-01-01 - 00:00 over 56 years
74.1.1 MIT 2 1970-01-01 - 00:00 over 56 years
74.1.0 MIT 2 1970-01-01 - 00:00 over 56 years
74.0.0 MIT 2 1970-01-01 - 00:00 over 56 years