CVE-2025-47273
Publication date 17 May 2025
Last updated 16 October 2026
Ubuntu priority
Cvss 3 Severity Score
Description
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| python-setuptools | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release | |
| 24.04 LTS noble | Not in release | |
| 22.04 LTS jammy |
Fixed in 44.1.1-1.2ubuntu0.22.04.1+esm2
|
|
| 20.04 LTS focal |
Fixed in 44.0.0-2ubuntu0.1+esm2
|
|
| 18.04 LTS bionic |
Fixed in 39.0.1-2ubuntu0.1+esm2
|
|
| 16.04 LTS xenial |
Fixed in 20.7.0-1ubuntu0.1~esm3
|
|
| 14.04 LTS trusty |
Fixed in 3.3-1ubuntu2+esm3
|
|
| setuptools | 26.10 stonking |
Not affected
|
| 26.04 LTS resolute |
Not affected
|
|
| 24.04 LTS noble |
Fixed in 68.1.2-2ubuntu1.2
|
|
| 22.04 LTS jammy |
Fixed in 59.6.0-1.2ubuntu0.22.04.3
|
|
| 20.04 LTS focal |
Fixed in 45.2.0-1ubuntu0.3
|
|
| python-pip | 26.10 stonking |
Not affected
|
| 26.04 LTS resolute |
Not affected
|
|
| 24.04 LTS noble |
Not affected
|
|
| 22.04 LTS jammy |
Not affected
|
|
| 20.04 LTS focal |
Fixed in 20.0.2-5ubuntu1.11+esm4
|
|
| 18.04 LTS bionic |
Fixed in 9.0.1-2.3~ubuntu1.18.04.8+esm8
|
|
| 16.04 LTS xenial |
Fixed in 8.1.1-2ubuntu0.6+esm12
|
|
| 14.04 LTS trusty |
Vulnerable
|
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu Pro 30-day free trialNotes
mdeslaur
On focal and earlier, the python-pip package bundles python-setuptools binaries when built. After updating python-setuptools, a no-change rebuild of python-pip is required. On jammy and later, python-setuptools is bundled in the python-pip package and needs to be patched.
Patch details
| Package | Patch details |
|---|---|
| python-setuptools |
|
| setuptools |
|
Severity score breakdown
CVSS version:
Base score
7.7 · High
Vector: 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
Base score
8.8 · High
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
Related Ubuntu Security Notices (USN)
- USN-7544-1
- Setuptools vulnerability
- 28 May 2025
- USN-8010-1
- pip vulnerabilities
- 4 February 2026
Other references
- https://www.cve.org/CVERecord?id=CVE-2025-47273
- https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf
- https://github.com/pypa/setuptools/issues/4946
- https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88
- https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b