We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e2c2f9 commit f755ecdCopy full SHA for f755ecd
Doc/library/shutil.rst
@@ -665,6 +665,13 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
665
666
.. audit-event:: shutil.unpack_archive filename,extract_dir,format shutil.unpack_archive
667
668
+ .. warning::
669
+
670
+ Never extract archives from untrusted sources without prior inspection.
671
+ It is possible that files are created outside of the path specified in
672
+ the *extract_dir* argument, e.g. members that have absolute filenames
673
+ starting with "/" or filenames with two dots "..".
674
675
.. versionchanged:: 3.7
676
Accepts a :term:`path-like object` for *filename* and *extract_dir*.
677
0 commit comments