← Back to issue list

build(deps): update dependency setuptools to v78 [security] (main)

View original Github issue

Metadata

Project
craft-parts
Number
#1096
Type
pull request
State
merged
Author
renovate[bot]
Labels
—
Created
Updated
Closed

Current evaluation

Merged in #1096 via commit 0681571f, upgrading setuptools from 75.7.0 to 78.1.1 to remediate CVE-2025-47273.

Resolution: closed resolved

Reason: PR #1096 was merged into main as commit 0681571f. It pinned setuptools 78.1.1, containing the path-traversal fix for CVE-2025-47273.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [setuptools](https://redirect.github.com/pypa/setuptools) ([changelog](https://setuptools.pypa.io/en/stable/history.html)) | `==75.7.0` -> `==78.1.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/setuptools/78.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/setuptools/78.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/setuptools/75.7.0/78.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/setuptools/75.7.0/78.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. ### GitHub Vulnerability Alerts #### [CVE-2025-47273](https://redirect.github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf) ### 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](https://redirect.github.com/pypa/setuptools/issues/4946) --- ### Release Notes <details> <summary>pypa/setuptools (setuptools)</summary> ### [`v78.1.1`](https://redirect.github.com/pypa/setuptools/compare/v78.1.0...v78.1.1) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v78.1.0...v78.1.1) ### [`v78.1.0`](https://redirect.github.com/pypa/setuptools/compare/v78.0.2...v78.1.0) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v78.0.2...v78.1.0) ### [`v78.0.2`](https://redirect.github.com/pypa/setuptools/compare/v78.0.1...v78.0.2) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v78.0.1...v78.0.2) ### [`v78.0.1`](https://redirect.github.com/pypa/setuptools/compare/v77.0.3...v78.0.1) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v77.0.3...v78.0.1) ### [`v77.0.3`](https://redirect.github.com/pypa/setuptools/compare/v77.0.1...v77.0.3) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v77.0.1...v77.0.3) ### [`v77.0.1`](https://redirect.github.com/pypa/setuptools/compare/v76.1.0...v77.0.1) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v76.1.0...v77.0.1) ### [`v76.1.0`](https://redirect.github.com/pypa/setuptools/compare/v76.0.0...v76.1.0) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v76.0.0...v76.1.0) ### [`v76.0.0`](https://redirect.github.com/pypa/setuptools/compare/v75.9.1...v76.0.0) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v75.9.1...v76.0.0) ### [`v75.9.1`](https://redirect.github.com/pypa/setuptools/compare/v75.9.0...v75.9.1) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v75.9.0...v75.9.1) ### [`v75.9.0`](https://redirect.github.com/pypa/setuptools/compare/v75.8.2...v75.9.0) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v75.8.2...v75.9.0) ### [`v75.8.2`](https://redirect.github.com/pypa/setuptools/compare/v75.8.1...v75.8.2) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v75.8.1...v75.8.2) ### [`v75.8.1`](https://redirect.github.com/pypa/setuptools/compare/v75.8.0...v75.8.1) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v75.8.0...v75.8.1) ### [`v75.8.0`](https://redirect.github.com/pypa/setuptools/compare/v75.7.0...v75.8.0) [Compare Source](https://redirect.github.com/pypa/setuptools/compare/v75.7.0...v75.8.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "" in timezone Etc/UTC, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/canonical/craft-parts). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4xNi4wIiwidXBkYXRlZEluVmVyIjoiNDAuMTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in #1096 via commit 0681571f, upgrading setuptools from 75.7.0 to 78.1.1 to remediate CVE-2025-47273.
stealth/space-bunny-alpha — closed resolved Merged in #1096 as commit 0681571f, updating setuptools from 75.7.0 to 78.1.1 to address CVE-2025-47273.
qwen/qwen3.6-35b-a3b — — Merged automated update upgrading setuptools from 75.7.0 to 78.1.1 to patch CVE-2025-47273, a path traversal vulnerability in PackageIndex. The change passed CI checks and was merged to main.
qwen3.6-35b-a3b-mtp-q6 — — Merged automated update upgrading setuptools from 75.7.0 to 78.1.1 on main. The change resolves CVE-2025-47273, a path traversal vulnerability in PackageIndex. Applied via Renovate without conflicts.

Update history

No update history recorded yet.

Related work

  • Related To: setuptools#4946 (confidence 98%)

    Upstream issue cited for the PackageIndex path-traversal vulnerability addressed by setuptools 78.1.1.

Related issues

Issue Project State Summary Similarity
#1098 build(deps): update dependency setuptools to v78 [security] (hotfix/2.7) - autoclosed craft-parts closed Autoclosed unmerged after 493 days; the setuptools 78.1.1 security update was merged separately via #1096 at commit 0681571f.
87%
#2291 build(deps): update dependency setuptools to v78 [security] (main) - autoclosed charmcraft closed Renovate's setuptools 78.1.1 security update was autoclosed unmerged; no corresponding version bump or resolving commit was found.
84%
#225 build(deps): update dependency setuptools to v75 craft-store merged Merged in #225 via commit d90785a, updating setuptools from 70.3.0 to 75.1.0.
84%
#1097 build(deps): update dependency setuptools to v78 [security] (hotfix/2.4) - autoclosed craft-parts closed Renovate PR #1097 was autoclosed unmerged after 493 days, leaving setuptools 75.7.0 in hotfix/2.4; Ubuntu 20.04 tests and linters were failing.
84%
#683 build(deps): update dependency setuptools to v75 (main) craft-providers merged Renovate PR merged: setuptools build dep bumped from 73.0.1 to 75.1.0 via commit 6ad8f95 in main; later superseded by #689 (75.2.0) and #897/#911 bumps.
84%
#4986 build(deps): update dependency setuptools to v70 [security] (main) - autoclosed snapcraft closed Renovate PR #4986 proposed setuptools 70 for CVE-2024-6345 but was autoclosed unmerged after inactivity; later PR #6386 merged setuptools 84.
83%
#360 build(deps): update dependency setuptools to v82 (main) craft-store merged Merged #360 in commit e7a9845, updating setuptools from 80.10.2 to 82.0.1.
83%
#281 build(deps): update dependency setuptools to v75 craft-cli merged Merged PR #281 updated setuptools from 70.1.0 to 75.1.0; merged as commit ae19849.
82%
#2292 build(deps): update dependency setuptools to v78 [security] (hotfix/2.7) - autoclosed charmcraft closed Renovate's setuptools 78.1.1 security update for hotfix/2.7 was autoclosed unmerged after prolonged inactivity; numerous CI jobs failed and no resolving commit was recorded.
82%
#399 build(deps): update dependency setuptools to v80 (main) craft-cli merged Merged PR #399 updated setuptools from 75.9.1 to 80.9.0 in the build requirements; commit 90dc389 landed it on main.
82%