{"id":"UBUNTU-CVE-2025-47273","details":"setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. A path traversal vulnerability in `PackageIndex` is present in setuptools prior to version 78.1.1. 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 remote code execution depending on the context. Version 78.1.1 fixes the issue.","modified":"2026-02-05T21:28:45.735786Z","published":"2025-05-17T16:15:00Z","related":["USN-7544-1","USN-8010-1"],"upstream":["CVE-2025-47273"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-47273"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-47273"},{"type":"REPORT","url":"https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf"},{"type":"REPORT","url":"https://github.com/pypa/setuptools/issues/4946"},{"type":"REPORT","url":"https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88"},{"type":"REPORT","url":"https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7544-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8010-1"}],"affected":[{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/python-pip@1.5.4-1ubuntu4+esm5?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.1-2","1.5.4-1","1.5.4-1ubuntu1","1.5.4-1ubuntu3","1.5.4-1ubuntu4","1.5.4-1ubuntu4+esm1","1.5.4-1ubuntu4+esm2","1.5.4-1ubuntu4+esm3","1.5.4-1ubuntu4+esm4","1.5.4-1ubuntu4+esm5"],"ecosystem_specific":{"binaries":[{"binary_name":"python-pip","binary_version":"1.5.4-1ubuntu4+esm5"},{"binary_name":"python-pip-whl","binary_version":"1.5.4-1ubuntu4+esm5"},{"binary_name":"python3-pip","binary_version":"1.5.4-1ubuntu4+esm5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"python-setuptools","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/python-setuptools@3.3-1ubuntu2+esm3?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3-1ubuntu2+esm3"}]}],"versions":["1.4.2-1","2.0.1-1ubuntu1","2.0.1-2ubuntu1","2.0.2-1","2.1-1","2.2-1","3.3-1ubuntu1","3.3-1ubuntu2","3.3-1ubuntu2+esm1","3.3-1ubuntu2+esm2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro","binaries":[{"binary_name":"python-pkg-resources","binary_version":"3.3-1ubuntu2+esm3"},{"binary_name":"python-setuptools","binary_version":"3.3-1ubuntu2+esm3"},{"binary_name":"python-setuptools-whl","binary_version":"3.3-1ubuntu2+esm3"},{"binary_name":"python3-pkg-resources","binary_version":"3.3-1ubuntu2+esm3"},{"binary_name":"python3-setuptools","binary_version":"3.3-1ubuntu2+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"python-setuptools","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-setuptools@20.7.0-1ubuntu0.1~esm3?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20.7.0-1ubuntu0.1~esm3"}]}],"versions":["18.4-1","18.4-2","18.7-1","18.8-1","20.1.1-1","20.3.1-1","20.7.0-1","20.7.0-1ubuntu0.1~esm1","20.7.0-1ubuntu0.1~esm2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"pypy-pkg-resources","binary_version":"20.7.0-1ubuntu0.1~esm3"},{"binary_name":"pypy-setuptools","binary_version":"20.7.0-1ubuntu0.1~esm3"},{"binary_name":"python-pkg-resources","binary_version":"20.7.0-1ubuntu0.1~esm3"},{"binary_name":"python-setuptools","binary_version":"20.7.0-1ubuntu0.1~esm3"},{"binary_name":"python3-pkg-resources","binary_version":"20.7.0-1ubuntu0.1~esm3"},{"binary_name":"python3-setuptools","binary_version":"20.7.0-1ubuntu0.1~esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-pip@8.1.1-2ubuntu0.6+esm12?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.1.1-2ubuntu0.6+esm12"}]}],"versions":["1.5.6-7ubuntu1","1.5.6-7ubuntu2","8.0.2-7","8.0.3-1","8.0.3-2","8.1.0-1","8.1.0-2","8.1.1-1","8.1.1-2","8.1.1-2ubuntu0.1","8.1.1-2ubuntu0.2","8.1.1-2ubuntu0.4","8.1.1-2ubuntu0.6","8.1.1-2ubuntu0.6+esm2","8.1.1-2ubuntu0.6+esm3","8.1.1-2ubuntu0.6+esm4","8.1.1-2ubuntu0.6+esm5","8.1.1-2ubuntu0.6+esm6","8.1.1-2ubuntu0.6+esm8","8.1.1-2ubuntu0.6+esm10","8.1.1-2ubuntu0.6+esm11"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python-pip","binary_version":"8.1.1-2ubuntu0.6+esm12"},{"binary_name":"python-pip-whl","binary_version":"8.1.1-2ubuntu0.6+esm12"},{"binary_name":"python3-pip","binary_version":"8.1.1-2ubuntu0.6+esm12"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"python-setuptools","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-setuptools@39.0.1-2ubuntu0.1+esm2?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"39.0.1-2ubuntu0.1+esm2"}]}],"versions":["36.2.7-2","38.4.0-1","38.5.2-1","39.0.1-1","39.0.1-2","39.0.1-2ubuntu0.1","39.0.1-2ubuntu0.1+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"pypy-pkg-resources","binary_version":"39.0.1-2ubuntu0.1+esm2"},{"binary_name":"pypy-setuptools","binary_version":"39.0.1-2ubuntu0.1+esm2"},{"binary_name":"python-pkg-resources","binary_version":"39.0.1-2ubuntu0.1+esm2"},{"binary_name":"python-setuptools","binary_version":"39.0.1-2ubuntu0.1+esm2"},{"binary_version":"39.0.1-2ubuntu0.1+esm2","binary_name":"python3-pkg-resources"},{"binary_name":"python3-setuptools","binary_version":"39.0.1-2ubuntu0.1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-pip@9.0.1-2.3~ubuntu1.18.04.8+esm8?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.0.1-2.3~ubuntu1.18.04.8+esm8"}]}],"versions":["9.0.1-2","9.0.1-2.3~ubuntu1","9.0.1-2.3~ubuntu1.18.04.1","9.0.1-2.3~ubuntu1.18.04.2","9.0.1-2.3~ubuntu1.18.04.3","9.0.1-2.3~ubuntu1.18.04.4","9.0.1-2.3~ubuntu1.18.04.5","9.0.1-2.3~ubuntu1.18.04.5+esm2","9.0.1-2.3~ubuntu1.18.04.5+esm3","9.0.1-2.3~ubuntu1.18.04.6","9.0.1-2.3~ubuntu1.18.04.6+esm1","9.0.1-2.3~ubuntu1.18.04.7","9.0.1-2.3~ubuntu1.18.04.7+esm1","9.0.1-2.3~ubuntu1.18.04.8","9.0.1-2.3~ubuntu1.18.04.8+esm1","9.0.1-2.3~ubuntu1.18.04.8+esm2","9.0.1-2.3~ubuntu1.18.04.8+esm4","9.0.1-2.3~ubuntu1.18.04.8+esm6","9.0.1-2.3~ubuntu1.18.04.8+esm7"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python-pip","binary_version":"9.0.1-2.3~ubuntu1.18.04.8+esm8"},{"binary_version":"9.0.1-2.3~ubuntu1.18.04.8+esm8","binary_name":"python-pip-whl"},{"binary_name":"python3-pip","binary_version":"9.0.1-2.3~ubuntu1.18.04.8+esm8"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"setuptools","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/setuptools@45.2.0-1ubuntu0.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"45.2.0-1ubuntu0.3"}]}],"versions":["45.2.0-1","45.2.0-1ubuntu0.1","45.2.0-1ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-pkg-resources","binary_version":"45.2.0-1ubuntu0.3"},{"binary_name":"python3-setuptools","binary_version":"45.2.0-1ubuntu0.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"setuptools","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/setuptools@59.6.0-1.2ubuntu0.22.04.3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"59.6.0-1.2ubuntu0.22.04.3"}]}],"versions":["52.0.0-4","58.2.0-1","59.6.0-1.2","59.6.0-1.2ubuntu0.22.04.1","59.6.0-1.2ubuntu0.22.04.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-pkg-resources","binary_version":"59.6.0-1.2ubuntu0.22.04.3"},{"binary_name":"python3-setuptools","binary_version":"59.6.0-1.2ubuntu0.22.04.3"},{"binary_name":"python3-setuptools-whl","binary_version":"59.6.0-1.2ubuntu0.22.04.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"python-setuptools","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/python-setuptools@44.1.1-1.2ubuntu0.22.04.1+esm2?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"44.1.1-1.2ubuntu0.22.04.1+esm2"}]}],"versions":["44.1.1-1","44.1.1-1.2","44.1.1-1.2ubuntu0.22.04.1","44.1.1-1.2ubuntu0.22.04.1+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"pypy-pkg-resources","binary_version":"44.1.1-1.2ubuntu0.22.04.1+esm2"},{"binary_name":"pypy-setuptools","binary_version":"44.1.1-1.2ubuntu0.22.04.1+esm2"},{"binary_name":"python-pkg-resources","binary_version":"44.1.1-1.2ubuntu0.22.04.1+esm2"},{"binary_name":"python-setuptools","binary_version":"44.1.1-1.2ubuntu0.22.04.1+esm2"},{"binary_name":"python2-setuptools-whl","binary_version":"44.1.1-1.2ubuntu0.22.04.1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}},{"package":{"name":"setuptools","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/setuptools@68.1.2-2ubuntu1.2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"68.1.2-2ubuntu1.2"}]}],"versions":["68.1.2-2","68.1.2-2ubuntu1","68.1.2-2ubuntu1.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-pkg-resources","binary_version":"68.1.2-2ubuntu1.2"},{"binary_name":"python3-setuptools","binary_version":"68.1.2-2ubuntu1.2"},{"binary_name":"python3-setuptools-whl","binary_version":"68.1.2-2ubuntu1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47273.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","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":"Ubuntu","score":"medium"}]}