Critical Security Flaw in Python 3.14: Tarfile Extraction Filter Bypass

python3.14 Updated 26 Aug 2026

Summary

24/08/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:58928: Important: python3.14 security update. Affects python3.14 versions < 3.14.7-2.el10_2. Fixed in 3.14.7-2.el10_2. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Python 3.14 is an interpreted, interactive, object-oriented programming language widely used for various applications, from web development to data analysis. It features modules, classes, exceptions, and dynamic data types, making it versatile and powerful. However, a recent security vulnerability has been identified that affects the tarfile module, allowing unauthorized directory access during file extraction.

Vulnerability Detail

The vulnerability, identified as CVE-2026-11940, is a tarfile extraction filter bypass that permits attackers to escape the intended destination directory when extracting files. This flaw could lead to unauthorized file access and potential system compromise, as malicious actors may exploit this vulnerability to overwrite critical files or execute arbitrary code.

How To Fix

Minimum fixed version

3.14.7-2.el10_2

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, avoid using the tarfile module for extracting files from untrusted sources until the package is updated. Consider using alternative libraries or methods for file extraction that do not exhibit this vulnerability.

Conclusion

The vulnerability in Python 3.14 poses significant risks due to the tarfile extraction filter bypass. It is crucial to update to the patched version to mitigate these risks. Users should remain vigilant and consider using alternative methods for file extraction until the update is applied.

See every vulnerability recorded for python3.14 →

Share this vulnerability

FAQ

CVE-2026-11940 is a security vulnerability in Python 3.14 that allows a tarfile extraction filter bypass, enabling attackers to escape the destination directory.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The risks include unauthorized file access, potential overwriting of critical files, and the execution of arbitrary code, which could lead to system compromise.

Yes, a patch is available in version 3.14.7-2.el10_2 of Python 3.14. It is recommended to update to this version.

If you cannot update immediately, avoid using the tarfile module for extracting files from untrusted sources as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for python3.14.

How To Fix

Minimum fixed version

3.14.7-2.el10_2

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback