Critical Security Flaw in Python 3.14: Tarfile Extraction Filter Bypass
Summary
ALSA-2026:58901: Important: python3.14 security update. Affects python3.14 versions < 3.14.7-2.el9_8. Fixed in 3.14.7-2.el9_8. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Python 3.14 is an interpreted, interactive, object-oriented programming language that supports dynamic data types and dynamic typing. It includes modules, classes, exceptions, and interfaces to various system calls and libraries. This version is widely used for developing applications across multiple domains due to its versatility and ease of use. However, it is susceptible to a security vulnerability that can compromise the integrity of file extraction processes.
Vulnerability Detail
The vulnerability identified as CVE-2026-11940 is a tarfile extraction filter bypass in CPython. This flaw allows an attacker to escape the intended destination directory during the extraction of tar files, potentially leading to unauthorized file access or overwriting critical files on the system. This vulnerability arises from improper validation of file paths during the extraction process, making it essential for users to address it promptly to avoid exploitation.
How To Fix
Minimum fixed version
3.14.7-2.el9_8
This is the first release that contains the fix.
sudo dnf update python3.14
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can avoid using the tarfile module for extracting files from untrusted sources until the update is applied. It is advisable to validate and sanitize file paths manually before extraction.
Conclusion
The vulnerability in Python 3.14 poses significant risks due to its ability to bypass extraction filters, leading to unauthorized file access. It is crucial for users to update to the latest patched version to safeguard their systems. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for python3.14 →
FAQ
CVE-2026-11940 is a security vulnerability in Python 3.14 that allows an attacker to bypass extraction filters in tarfile, leading to potential unauthorized access to files.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
The risks include unauthorized file access, potential data loss, and system compromise, which can lead to further exploitation of the affected system.
Yes, a patch is available in version 3.14.7-2.el9_8 of Python 3.14. Users should update their installations to this version to mitigate the risk.
If immediate updating is not possible, avoid using the tarfile module for untrusted files and validate file paths manually to reduce risk.
Related vulnerabilities
Recent vulnerabilities recorded for python3.14.