Critical Security Flaws in Python 3.9: Command Injection and Code Execution Vulnerabilities

python3.9 Updated 04 Jun 2026

Summary

28/05/2026
N/A
Yes i
High
8.1

RLSA-2026:19216: Important: python3.9 security update. Affects python3.9 versions < 0:3.9.25-7.el9_8. Fixed in 0:3.9.25-7.el9_8. 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.9 is an interpreted, interactive, object-oriented programming language widely used for various applications, including web development, data analysis, artificial intelligence, and more. It features dynamic typing, high-level data types, and extensive libraries, making it a versatile choice for developers. However, recent vulnerabilities have been identified that could compromise the security of applications utilizing this version.

Vulnerability Detail

The vulnerabilities in Python 3.9 stem from command-line option injection and use-after-free issues in decompression modules. Specifically, crafted URLs can lead to command injection in the webbrowser.open() API, allowing arbitrary code execution or information disclosure. The vulnerabilities are tracked under CVE-2026-4519, CVE-2026-4786, and CVE-2026-6100, with a CVSS score of 8.1 indicating a high severity level. These flaws could allow attackers to execute malicious code or access sensitive information, posing significant risks to applications relying on this version of Python.

How To Fix

Minimum fixed version

0:3.9.25-7.el9_8

This is the first release that contains the fix.

sudo dnf update python3.9

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 webbrowser.open() API with untrusted URLs until the package is updated. Validate and sanitize any URLs before processing them to mitigate the risk of command injection.

Conclusion

The vulnerabilities identified in Python 3.9 pose significant risks to applications using this version. It is crucial to update to the patched version to mitigate these risks. Users should also consider using tools like Vulert to monitor and alert for open-source vulnerabilities in their software.

See every vulnerability recorded for python3.9 →

Share this vulnerability

FAQ

The main vulnerabilities include command-line option injection and arbitrary code execution due to use-after-free issues in decompression modules.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 8.1, indicating a high severity level.

If an immediate update is not possible, avoid using the vulnerable features and validate any URLs processed by your application.

More information can be found on the CVE pages for CVE-2026-4519, CVE-2026-4786, and CVE-2026-6100.

Related vulnerabilities

Recent vulnerabilities recorded for python3.9.

How To Fix

Minimum fixed version

0:3.9.25-7.el9_8

This is the first release that contains the fix.

sudo dnf update python3.9

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