You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tarfile data/tar filter bypass via hard link to a symlink #157190
On CPython 3.13.15 for Linux, an attacker-controlled tar archive extracted with the tar or data filter can make tarfile change the permissions and modification time of an existing file outside the extraction directory. The archive also leaves a path inside the extracted tree that resolves to the outside file. Opening that path returns the outside file's content.
This was incidentally fixed by 5a57248 for 3.14+ which changed os.link to use AT_SYMLINK_FOLLOW.
Activity
gh-157190: Follow symlinks when extracting `tarfile` hard links (GH-1…
[3.13] gh-157190: Fix tarfile `data`/`tar` filter bypass via hard lin…
pythongh-157190: Follow symlinks when extracting `tarfile` hard links (…
pythongh-157190: Follow symlinks when extracting `tarfile` hard links (…
chore(security): accept CVE-2026-82049 in Grype and bump anyio in the…
[3.11] pythongh-157190: Fix tarfile `data`/`tar` filter bypass via ha…
[3.10] gh-157190: Fix tarfile `data`/`tar` filter bypass via hard lin…
[3.11] gh-157190: Fix tarfile `data`/`tar` filter bypass via hard lin…
[3.14] gh-157190: Follow symlinks when extracting `tarfile` hard links (
[3.12] gh-157190: Fix tarfile `data`/`tar` filter bypass via hard lin…
[3.15] gh-157190: Follow symlinks when extracting `tarfile` hard links (