Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/tarfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,13 @@ reused in custom filters:

Return the modified ``TarInfo`` member.

.. warning::

This filter does not check link targets (:attr:`TarInfo.linkname`).
It allows benign cases (like links to ``/dev/null``), but it also allows
links (symbolic and hard) to arbitrary files on the filesystem,
potentially granting unintended access to these files.

.. versionchanged:: next

Filenames containing ``..`` components are now normalized.
Expand Down
Loading