PatchSiren cyber security CVE debrief
CVE-2026-107784 Python Software Foundation CVE debrief
A vulnerability in the tarfile extraction filters of Python's CPython allows for drive-relative paths on Windows to be written outside the intended destination directory when extracting to a relative path. This could potentially lead to files being written to arbitrary locations on the system. The vulnerability requires attention from system administrators and developers using CPython, especially on Windows systems or with untrusted input. The vulnerability allows for drive-relative paths to be written outside the intended destination, potentially leading to arbitrary file creation or modification.
- Vendor
- Python Software Foundation
- Product
- CPython
- CVSS
- MEDIUM 6.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-23
- Original CVE updated
- 2026-11-24
- Advisory published
- 2026-11-23
- Advisory updated
- 2026-11-24
Who should care
System administrators and developers using CPython, especially those handling untrusted input or working on Windows systems, should be aware of this vulnerability and take necessary actions to mitigate it. This includes reviewing and updating CPython to version 3.16.0 or later, validating input to tarfile extraction functions, and monitoring systems for unusual activity.
Why it matters
This vulnerability in CPython's tarfile extraction filters requires attention from system administrators and developers using CPython, especially on Windows systems or with untrusted input. The vulnerability allows for drive-relative paths to be written outside the intended destination, potentially leading to arbitrary file creation or modification. Updating to CPython version 3.16.0 or later is recommended, along with validating input to tarfile extraction functions and monitoring systems for unusual activity.
- Potential for arbitrary file creation or modification
- Need for input validation and sanitization
- Requirement for updated CPython version
Technical summary
The tarfile extraction filters in CPython did not properly handle drive-relative paths on Windows, allowing for files to be written outside the intended destination directory. This has been fixed in version 3.16.0. The vulnerability requires attention from system administrators and developers using CPython, especially on Windows systems or with untrusted input. Updating to CPython version 3.16.0 or later is recommended, along with validating input to tarfile extraction functions and monitoring systems for unusual activity.
Defensive priority
Medium priority for systems using CPython, especially those with untrusted input
Recommended defensive actions
- Review and update CPython to version 3.16.0 or later
- Validate input to CPython's tarfile extraction functions
- Monitor systems for unusual file creation or modification
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The CVE record and source item provide details on the vulnerability in CPython's tarfile extraction filters. The NVD entry is currently not provided. The vulnerability was addressed in CPython version 3.16.0, which includes fixes for handling drive-relative paths during tarfile extraction. Users should verify their CPython versions and update if necessary.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-107784 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-107784
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-107784 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-107784
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
tarfile extraction filters accept drive-relative paths on Windows
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/107xxx/CVE-2026-107784.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/python/cpython/pull/161334
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/python/cpython/issues/161323
Supplemental source - issue-tracking
-
Source reference
Unverified legacy reference
URL: https://mail.python.org/archives/list/[email protected]/thread/ANUOLPP6MFFJ45RT6XG2BRGZPFHMGDAS/
Supplemental source - vendor-advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.