Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    BREW-ANSIBLE-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-10-29 21:32 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ansible",
            "purl": "pkg:brew/ansible"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "2.0.1.0"
                },
                {
                  "fixed": "2.1.2.0"
                },
                {
                  "introduced": "9.2.0"
                },
                {
                  "fixed": "11.5.0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-ansible-CVE-2025-47273",
      "modified": "2026-10-29T21:32:40Z",
      "published": "2026-08-13T16:35:22Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-ANSIBLE@10-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-09-17 18:48 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@80.9.0",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ansible@10",
            "purl": "pkg:brew/ansible%4010"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "10.6.0"
                },
                {
                  "fixed": "10.7.0_3"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@80.9.0",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "80.9.0"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-ansible@10-CVE-2025-47273",
      "modified": "2026-09-17T18:48:29Z",
      "published": "2026-08-13T16:35:22Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-ANSIBLE@9-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-09-17 17:30 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@80.9.0",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ansible@9",
            "purl": "pkg:brew/ansible%409"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "9.6.0"
                },
                {
                  "fixed": "9.13.0_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@80.9.0",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "80.9.0"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-ansible@9-CVE-2025-47273",
      "modified": "2026-09-17T17:30:02Z",
      "published": "2026-08-13T16:35:23Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-AWS-ELASTICBEANSTAL… (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:37 – Updated: 2026-10-23 09:13 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "aws-elasticbeanstalk",
            "purl": "pkg:brew/aws-elasticbeanstalk"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.27.3_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-aws-elasticbeanstalk-CVE-2025-47273",
      "modified": "2026-10-23T09:13:10Z",
      "published": "2026-08-13T16:37:01Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-AWS-SAM-CLI-CVE-202… (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:37 – Updated: 2026-10-26 10:23 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "aws-sam-cli",
            "purl": "pkg:brew/aws-sam-cli"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.107.0"
                },
                {
                  "fixed": "1.138.0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-aws-sam-cli-CVE-2025-47273",
      "modified": "2026-10-26T10:23:14Z",
      "published": "2026-08-13T16:37:01Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-AZURE-CLI-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:37 – Updated: 2026-09-17 20:03 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.0.0",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "azure-cli",
            "purl": "pkg:brew/azure-cli"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "2.66.0"
                },
                {
                  "fixed": "2.72.0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.0.0",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.0.0"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-azure-cli-CVE-2025-47273",
      "modified": "2026-09-17T20:03:39Z",
      "published": "2026-08-13T16:37:03Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-BAZARR-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:37 – Updated: 2026-10-29 21:31 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "bazarr",
            "purl": "pkg:brew/bazarr"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.4.3"
                },
                {
                  "fixed": "1.5.2"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-bazarr-CVE-2025-47273",
      "modified": "2026-10-29T21:31:41Z",
      "published": "2026-08-13T16:37:10Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-BZT-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:38 – Updated: 2026-10-13 23:12 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@80.10.2",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "bzt",
            "purl": "pkg:brew/bzt"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.16.3"
                },
                {
                  "fixed": "1.16.8"
                },
                {
                  "introduced": "1.16.29"
                },
                {
                  "fixed": "1.16.40_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@80.10.2",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "80.10.2"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-bzt-CVE-2025-47273",
      "modified": "2026-10-13T23:12:49Z",
      "published": "2026-08-13T16:38:28Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-CCM-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:39 – Updated: 2026-10-26 10:23 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ccm",
            "purl": "pkg:brew/ccm"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "3.1.5_3"
                },
                {
                  "fixed": "3.1.5_5"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-ccm-CVE-2025-47273",
      "modified": "2026-10-26T10:23:15Z",
      "published": "2026-08-13T16:39:03Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-CHARM-TOOLS-CVE-202… (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:39 – Updated: 2026-10-07 22:51 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@81.0.0",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "charm-tools",
            "purl": "pkg:brew/charm-tools"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "3.0.7_1"
                },
                {
                  "fixed": "3.0.8_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@81.0.0",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "81.0.0"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-charm-tools-CVE-2025-47273",
      "modified": "2026-10-07T22:51:08Z",
      "published": "2026-08-13T16:39:06Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-CHARMCRAFT-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:39 – Updated: 2026-08-13 16:39 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@83.0.0",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "charmcraft",
            "purl": "pkg:brew/charmcraft"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.4.0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@83.0.0",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "83.0.0"
          },
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@83.0.0",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "83.0.0"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-charmcraft-CVE-2025-47273",
      "modified": "2026-08-13T16:39:06Z",
      "published": "2026-08-13T16:39:06Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-CLOUDFORMATION-CLI-… (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:40 – Updated: 2026-10-26 09:01 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "cloudformation-cli",
            "purl": "pkg:brew/cloudformation-cli"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.2.35_1"
                },
                {
                  "fixed": "0.2.39_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-cloudformation-cli-CVE-2025-47273",
      "modified": "2026-10-26T09:01:09Z",
      "published": "2026-08-13T16:40:09Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-COCONUT-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:40 – Updated: 2026-10-29 21:58 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "coconut",
            "purl": "pkg:brew/coconut"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "3.0.4"
                },
                {
                  "fixed": "3.1.2_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-coconut-CVE-2025-47273",
      "modified": "2026-10-29T21:58:09Z",
      "published": "2026-08-13T16:40:10Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-CONDA-LOCK-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:41 – Updated: 2026-10-29 21:39 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "conda-lock",
            "purl": "pkg:brew/conda-lock"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "2.5.5"
                },
                {
                  "fixed": "3.0.1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-conda-lock-CVE-2025-47273",
      "modified": "2026-10-29T21:39:28Z",
      "published": "2026-08-13T16:41:05Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-CYTHON-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:42 – Updated: 2026-10-28 08:40 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "cython",
            "purl": "pkg:brew/cython"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.2.9"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-cython-CVE-2025-47273",
      "modified": "2026-10-28T08:40:44Z",
      "published": "2026-08-13T16:42:08Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-DATASETTE-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:42 – Updated: 2026-10-28 08:41 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "datasette",
            "purl": "pkg:brew/datasette"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.64.6_1"
                },
                {
                  "fixed": "0.65.1_3"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-datasette-CVE-2025-47273",
      "modified": "2026-10-28T08:41:15Z",
      "published": "2026-08-13T16:42:09Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-DUPLICITY-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:44 – Updated: 2026-10-31 18:52 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "duplicity",
            "purl": "pkg:brew/duplicity"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.7.06"
                },
                {
                  "fixed": "0.7.09_1"
                },
                {
                  "introduced": "2.2.2"
                },
                {
                  "fixed": "2.2.3"
                },
                {
                  "introduced": "3.0.3.2"
                },
                {
                  "fixed": "3.0.5"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-duplicity-CVE-2025-47273",
      "modified": "2026-10-31T18:52:12Z",
      "published": "2026-08-13T16:44:03Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-DVC-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:44 – Updated: 2026-10-27 09:25 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "dvc",
            "purl": "pkg:brew/dvc"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "3.48.0"
                },
                {
                  "fixed": "3.59.1_2"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-dvc-CVE-2025-47273",
      "modified": "2026-10-27T09:25:58Z",
      "published": "2026-08-13T16:44:03Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-FADES-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:46 – Updated: 2026-10-26 08:58 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "fades",
            "purl": "pkg:brew/fades"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "9.0.2"
                },
                {
                  "fixed": "9.0.2_2"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-fades-CVE-2025-47273",
      "modified": "2026-10-26T08:58:58Z",
      "published": "2026-08-13T16:46:27Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }

    BREW-GDTOOLKIT-CVE-2025-47273 (GHSA-5RJG-FVGR-3XXF)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:49 – Updated: 2026-10-27 09:29 – Source website
    VLAI
    Summary
    setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
    Details

    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 easy_install and package_index 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": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "setuptools",
            "resource_purl": "pkg:pypi/setuptools@84.2.1",
            "upstream_fixed_in": "78.1.1"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "gdtoolkit",
            "purl": "pkg:brew/gdtoolkit"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "4.3.3"
                },
                {
                  "fixed": "4.3.3_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/setuptools@84.2.1",
            "name": "setuptools",
            "resource": "setuptools",
            "strategy": "registry",
            "subject_version": "84.2.1"
          }
        ]
      },
      "details": "### Summary \nA path traversal vulnerability in `PackageIndex` was fixed in setuptools version 78.1.1\n\n### Details\n```\n    def _download_url(self, url, tmpdir):\n        # Determine download filename\n        #\n        name, _fragment = egg_info_for_url(url)\n        if name:\n            while \u0027..\u0027 in name:\n                name = name.replace(\u0027..\u0027, \u0027.\u0027).replace(\u0027\\\\\u0027, \u0027_\u0027)\n        else:\n            name = \"__downloaded__\"  # default if URL has no path contents\n\n        if name.endswith(\u0027.[egg.zip](http://egg.zip/)\u0027):\n            name = name[:-4]  # strip the extra .zip before download\n\n --\u003e       filename = os.path.join(tmpdir, name)\n```\n\nHere: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88\n\n`os.path.join()` discards the first argument `tmpdir` if the second begins with a slash or drive letter.\n`name` is derived from a URL without sufficient sanitization. While there is some attempt to sanitize by replacing instances of \u0027..\u0027 with \u0027.\u0027, it is insufficient.\n\n### Risk Assessment\nAs easy_install and package_index are deprecated, the exploitation surface is reduced.\nHowever, 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.\n\n### Impact\nAn 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.\n\n### References\nhttps://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5\nhttps://github.com/pypa/setuptools/issues/4946",
      "id": "BREW-gdtoolkit-CVE-2025-47273",
      "modified": "2026-10-27T09:29:28Z",
      "published": "2026-08-13T16:49:55Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47273"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/issues/4946"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pypa/setuptools"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P",
          "type": "CVSS_V4"
        }
      ],
      "summary": "setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write",
      "upstream": [
        "GHSA-5rjg-fvgr-3xxf",
        "BIT-setuptools-2025-47273",
        "CVE-2025-47273",
        "PYSEC-2025-49"
      ]
    }