From: Gregory P. Smith Date: Tue, 29 Sep 2009 21:56:31 +0000 (+0000) Subject: Mention issue6972 in extractall docs about overwriting things outside of X-Git-Tag: v2.7a1~437 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=657024cd26bb52f19029289beacccfcdfa9d437e;p=python Mention issue6972 in extractall docs about overwriting things outside of the supplied path. --- diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index ec357bb73b..0577f10f3e 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -207,6 +207,13 @@ ZipFile Objects be a subset of the list returned by :meth:`namelist`. *pwd* is the password used for encrypted files. + .. warning:: + + Never extract archives from untrusted sources without prior inspection. + It is possible that files are created outside of *path*, e.g. members + that have absolute filenames starting with ``"/"`` or filenames with two + dots ``".."``. + .. versionadded:: 2.6