Critical Security Flaws in Python 3.12: Essential Update Required

python3.12 Updated 02 Oct 2025

Summary

01/07/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:10031: Important: python3.12 security update. Affects python3.12 versions < 3.12.11-1.el8_10. Fixed in 3.12.11-1.el8_10. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Python 3.12 is a widely-used, interpreted programming language known for its versatility and ease of use. It supports various programming paradigms, including procedural, object-oriented, and functional programming. Python is equipped with a rich standard library and is commonly used for web development, data analysis, artificial intelligence, and more. However, recent vulnerabilities have been identified that could compromise the security of applications relying on this version.

Vulnerability Detail

The vulnerabilities in Python 3.12 include multiple issues related to the tarfile module, which can lead to serious security risks. These include the ability to bypass extraction filters, arbitrary writes via realpath overflow, and the potential for creating symlinks to arbitrary targets outside the extraction directory. These vulnerabilities could allow attackers to manipulate file metadata, leading to unauthorized access or data corruption.

How To Fix

Minimum fixed version

3.12.11-1.el8_10

This is the first release that contains the fix.

sudo dnf update python3.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, avoid using the tarfile module for extracting files from untrusted sources until the update is applied. Additionally, implement strict validation of file paths and metadata to mitigate risks.

Conclusion

The identified vulnerabilities in Python 3.12 pose significant risks to applications using this version. It is crucial to apply the necessary updates to mitigate these risks and ensure the security of your software. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for python3.12 →

Share this vulnerability

FAQ

The main vulnerabilities include extraction filter bypasses, arbitrary writes, and the ability to create symlinks to arbitrary targets outside the extraction directory.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring signup.

If an immediate update is not possible, avoid using the tarfile module for untrusted files and implement strict validation of file paths.

Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities, providing an easy way to stay informed.

The vulnerabilities can lead to unauthorized access, data corruption, and potential exploitation of the system, making it critical to address them promptly.

Related vulnerabilities

Recent vulnerabilities recorded for python3.12.

How To Fix

Minimum fixed version

3.12.11-1.el8_10

This is the first release that contains the fix.

sudo dnf update python3.12

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