]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-138158: Use the `"data"` tarfile extraction filter in `Tools/ssl/multissltests...
authorTommaso Bona <piergeolo@gmail.com>
Sat, 30 Aug 2025 10:27:32 +0000 (12:27 +0200)
committerGitHub <noreply@github.com>
Sat, 30 Aug 2025 10:27:32 +0000 (12:27 +0200)
commit31d3836f26096f9503ca68f4e89d927bc1e060cd
tree6d11200d4980dab980505571aa6a780832ff6fcd
parentbacb7771fb0390a1ae7f83b7bec97e5ce1d60d26
gh-138158: Use the `"data"` tarfile extraction filter in `Tools/ssl/multissltests.py` (#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.
Tools/ssl/multissltests.py