]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict...
authorŁukasz Langa <lukasz@langa.pl>
Tue, 3 Jun 2025 12:05:00 +0000 (14:05 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 12:05:00 +0000 (14:05 +0200)
commit9e0ac76d96cf80b49055f6d6b9a6763fb9215c2a
tree3f749572fae0db8f80212aa9e06a227beb56fa33
parent78fd7ce3d2f14a00b50dced680baf2e3b805dc8b
[3.14] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict='allow_missing')` (gh-135037) (gh-135065)

Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517.

(cherry picked from commit 3612d8f51741b11f36f8fb0494d79086bac9390a)

Signed-off-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/os.path.rst
Doc/library/tarfile.rst
Doc/whatsnew/3.14.rst
Lib/genericpath.py
Lib/ntpath.py
Lib/posixpath.py
Lib/tarfile.py
Lib/test/test_ntpath.py
Lib/test/test_posixpath.py
Lib/test/test_tarfile.py
Misc/NEWS.d/next/Security/2025-06-02-11-32-23.gh-issue-135034.RLGjbp.rst [new file with mode: 0644]