Skip to content

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented May 30, 2025

This PR contains the following updates:

Package Change Age Confidence
setuptools (changelog) ==75.1.0 -> ==78.1.1 age confidence

GitHub Vulnerability Alerts

CVE-2025-47273

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 GHSA-r9hx-vwmv-q579, and as described by POC 4 in 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


Release Notes

pypa/setuptools (setuptools)

v78.1.1

Compare Source

v78.1.0

Compare Source

v78.0.2

Compare Source

v78.0.1

Compare Source

v77.0.3

Compare Source

v77.0.1

Compare Source

v76.1.0

Compare Source

v76.0.0

Compare Source

v75.9.1

Compare Source

v75.9.0

Compare Source

v75.8.2

Compare Source

v75.8.1

Compare Source

v75.8.0

Compare Source

v75.7.0

Compare Source

v75.6.0

Compare Source

v75.5.0

Compare Source

v75.4.0

Compare Source

v75.3.2

Compare Source

v75.3.1

Compare Source

v75.3.0

Compare Source

v75.2.0

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@dpebot
Copy link
Collaborator

dpebot commented May 30, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from b336562 to 589d81c Compare June 4, 2025 16:31
@dpebot
Copy link
Collaborator

dpebot commented Jun 4, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 589d81c to 3f171f2 Compare June 5, 2025 21:08
@dpebot
Copy link
Collaborator

dpebot commented Jun 5, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 3f171f2 to 05fd293 Compare June 9, 2025 16:55
@dpebot
Copy link
Collaborator

dpebot commented Jun 9, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 05fd293 to 7e6848c Compare June 10, 2025 14:53
@dpebot
Copy link
Collaborator

dpebot commented Jun 10, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 7e6848c to a8c91ad Compare July 1, 2025 23:00
@dpebot
Copy link
Collaborator

dpebot commented Jul 1, 2025

/gcbrun

1 similar comment
@amandakarina
Copy link
Collaborator

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from a8c91ad to 43faf65 Compare July 8, 2025 23:25
@dpebot
Copy link
Collaborator

dpebot commented Jul 8, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 43faf65 to 0fd6b54 Compare July 10, 2025 21:17
@dpebot
Copy link
Collaborator

dpebot commented Jul 10, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 0fd6b54 to 7aacc9f Compare July 15, 2025 21:40
@dpebot
Copy link
Collaborator

dpebot commented Jul 15, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 7aacc9f to c99737f Compare July 22, 2025 00:39
@dpebot
Copy link
Collaborator

dpebot commented Jul 22, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from c99737f to 09f0cd3 Compare July 23, 2025 16:28
@dpebot
Copy link
Collaborator

dpebot commented Jul 23, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 09f0cd3 to 085373f Compare August 5, 2025 18:32
@dpebot
Copy link
Collaborator

dpebot commented Aug 5, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 085373f to 6a1ee39 Compare August 21, 2025 14:05
@dpebot
Copy link
Collaborator

dpebot commented Sep 9, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from d4e6b9e to 6d34497 Compare September 13, 2025 15:16
@dpebot
Copy link
Collaborator

dpebot commented Sep 13, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 6d34497 to 824c1bf Compare September 15, 2025 17:56
@dpebot
Copy link
Collaborator

dpebot commented Sep 15, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 824c1bf to 1561c6b Compare September 15, 2025 18:36
@dpebot
Copy link
Collaborator

dpebot commented Sep 15, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 1561c6b to ba08810 Compare September 19, 2025 17:34
@dpebot
Copy link
Collaborator

dpebot commented Sep 19, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from ba08810 to a119737 Compare September 23, 2025 21:57
@dpebot
Copy link
Collaborator

dpebot commented Sep 23, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from a119737 to 6a35c03 Compare September 25, 2025 18:19
@dpebot
Copy link
Collaborator

dpebot commented Sep 25, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 6a35c03 to e66b157 Compare September 26, 2025 17:10
@dpebot
Copy link
Collaborator

dpebot commented Sep 26, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from e66b157 to b6fb372 Compare October 1, 2025 22:56
@dpebot
Copy link
Collaborator

dpebot commented Oct 1, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from b6fb372 to 90b8e7d Compare October 8, 2025 00:54
@dpebot
Copy link
Collaborator

dpebot commented Oct 8, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 90b8e7d to 96ff05f Compare October 10, 2025 02:08
@dpebot
Copy link
Collaborator

dpebot commented Oct 10, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 96ff05f to 4d1502d Compare October 10, 2025 18:09
@dpebot
Copy link
Collaborator

dpebot commented Oct 10, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 4d1502d to c505b09 Compare October 15, 2025 01:12
@dpebot
Copy link
Collaborator

dpebot commented Oct 15, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from c505b09 to 8beacbb Compare October 15, 2025 17:13
@dpebot
Copy link
Collaborator

dpebot commented Oct 15, 2025

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/pypi-setuptools-vulnerability branch from 8beacbb to 4bac0d9 Compare October 16, 2025 23:30
@dpebot
Copy link
Collaborator

dpebot commented Oct 16, 2025

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants