GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — tarfile: Windows same-drive drive-relative symlink not caught by data filter · Issue #161323 · python/cpython Open Labels 3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixesOS-windowsrelease-blockerstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-securityA security issueA security issue DescriptionBug reportOn Windows, a member name or link target with a drive but no root, such as This runs the filters with Windows path handling on any OS: import ntpath, os, tarfile os.path = ntpath os.getcwd = lambda: r'C:\work' for name in 'C:evil.txt', 'x/../C:evil.txt': member = tarfile.data_filter(tarfile.TarInfo(name), 'out') print(repr(name), '->', ntpath.abspath(ntpath.join('out', member.name))) link = tarfile.TarInfo('link') link.type = tarfile.SYMTYPE link.linkname = './C:evil.txt' print('symlink ->', repr(tarfile.data_filter(link, 'out').linkname)) The filters should refuse these with Reported as a security issue via GHSA by Girish Konda. Assigned CVE-2026-107784. PR ready, reviewed, and approved via GHSA, i'll push that after opening this. CPython versions tested on:CPython main branch Operating systems tested on:Windows Linked PRs
Activity
MetadataMetadataAssigneesLabels3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixesOS-windowsrelease-blockerstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-securityA security issueA security issue Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |