Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 30, 2025

The Tools/ssl/multissltests.py script may extract a possibly untrusted tarball.
Since the script does not necessarily use Python 3.14 or later (where the "data"
filter became the default tarfile extraction filter), the user may theoretically
suffer from a path traversal attack.

Although the script should not be used in production and usually relies on downloading
trusted sources, the "data" extraction filter is now explicitly used wherever relevant.
(cherry picked from commit 31d3836)

Co-authored-by: Tommaso Bona piergeolo@gmail.com

…/ssl/multissltests.py` (pythonGH-138147)

The `Tools/ssl/multissltests.py` script may extract a possibly untrusted tarball.
Since the script does not necessarily use Python 3.14 or later (where the `"data"`
filter became the default `tarfile` extraction filter), the user may theoretically
suffer from a path traversal attack.

Although the script should not be used in production and usually relies on downloading
trusted sources, the `"data"` extraction filter is now explicitly used wherever relevant.
(cherry picked from commit 31d3836)

Co-authored-by: Tommaso Bona <piergeolo@gmail.com>
@picnixz picnixz enabled auto-merge (squash) August 30, 2025 10:29
@picnixz picnixz merged commit 8dd0276 into python:3.13 Aug 30, 2025
44 checks passed
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