We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a11a198 commit 8332ea3Copy full SHA for 8332ea3
Doc/library/shutil.rst
@@ -562,6 +562,13 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
562
The ``'data'`` filter will become the default for tar files
563
in Python 3.14.
564
565
+ .. warning::
566
+
567
+ Never extract archives from untrusted sources without prior inspection.
568
+ It is possible that files are created outside of the path specified in
569
+ the *extract_dir* argument, e.g. members that have absolute filenames
570
+ starting with "/" or filenames with two dots "..".
571
572
.. versionchanged:: 3.7
573
Accepts a :term:`path-like object` for *filename* and *extract_dir*.
574
0 commit comments