---
title: CPython CVE-2026-107784 (medium): on Windows, tarfile's 'data' and 'tar' filters let drive-relative names like C:foo escape the extraction folder | ctxsec
url: https://ctxsec.com/items/cpython-cve-2026-107784-tarfile-filters-windows-drive-relative-paths
description: "When extracting to a relative destination on Windows, a member named with a drive but no root was written to that drive's current directory, and links with such targets pointed outside. Fixed filters now raise AbsolutePathError / AbsoluteLinkError. Check the CVE record for affected versions."
status: "official (Python security announcement, Nov 23, 2026)"
published: 2026-11-23
---

> When extracting to a relative destination on Windows, a member named with a drive but no root was written to that drive's current directory, and links with such targets pointed outside. Fixed filters now raise AbsolutePathError / AbsoluteLinkError. Check the CVE record for affected versions.

[← Cybersecurity News](/news) · [markdown](/items/cpython-cve-2026-107784-tarfile-filters-windows-drive-relative-paths.md)

official (Python security announcement, Nov 23, 2026)

2026-11-23 2:47 PM ET

### CPython CVE-2026-107784 (medium): on Windows, tarfile's 'data' and 'tar' filters let drive-relative names like C:foo escape the extraction folder

- Windows only; applies to the 'tar' and 'data' extraction filters with a relative destination.
- If you extract untrusted archives on Windows, upgrade when your Python build ships the fix, or extract to an absolute path and reject names matching a drive letter followed by a colon.

Sources: [oss-security: CPython CVE-2026-107784 (Nov 23, 2026)](https://seclists.org/oss-sec/2026/q4/839) · [CPython PR 161334](https://github.com/python/cpython/pull/161334)
