Moderate Security Update for Python 3.9: Addressing Vulnerabilities in AlmaLinux

python-unversioned-command Updated 02 Oct 2025

Summary

12/12/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:10983: Moderate: python3.9:3.9.21 security update. Affects python-unversioned-command versions < 3.9.21-1.el9_5. Fixed in 3.9.21-1.el9_5. 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 is a widely-used interpreted, interactive, object-oriented programming language known for its simplicity and versatility. It supports modules, classes, exceptions, and dynamic data types, making it suitable for various applications, from web development to data analysis. The recent vulnerabilities identified in Python 3.9.21 affect its virtual environment activation scripts and the validation of IPv6 addresses, posing potential security risks to applications relying on this version.

Vulnerability Detail

The vulnerabilities in Python 3.9.21 stem from two main issues: first, the virtual environment (venv) activation scripts do not quote paths, which can lead to command injection vulnerabilities (CVE-2024-9287). Second, there is improper validation of IPv6 and IPvFuture addresses, which could allow attackers to exploit applications that rely on these addresses (CVE-2024-11168). These vulnerabilities can lead to unauthorized access or execution of arbitrary commands, compromising the security of applications.

How To Fix

Minimum fixed version

3.9.21-1.el9_5

This is the first release that contains the fix.

sudo dnf update python-unversioned-command

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

Workaround

As a temporary measure, you can manually quote paths in your virtual environment activation scripts to mitigate the risk of command injection until the update is applied. Ensure that any IPv6 addresses used in your applications are validated properly to avoid exploitation.

Conclusion

The vulnerabilities identified in Python 3.9.21 pose significant security risks that can affect applications relying on this version. It is crucial to update to the patched version 3.9.21-1.el9_5 to mitigate these risks. For those unable to update immediately, implementing workarounds can help reduce the potential impact.

See every vulnerability recorded for python-unversioned-command →

Share this vulnerability

FAQ

The main vulnerabilities are related to unquoted paths in virtual environment activation scripts and improper validation of IPv6 addresses.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. Visit Vulert Scanner to check your application without signing up.

These vulnerabilities can lead to unauthorized access and execution of arbitrary commands, potentially compromising the security of applications.

Yes, a patch is available in version 3.9.21-1.el9_5. Updating to this version will fix the vulnerabilities.

If immediate updating is not possible, manually quote paths in activation scripts and ensure proper validation of IPv6 addresses as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for python-unversioned-command.

How To Fix

Minimum fixed version

3.9.21-1.el9_5

This is the first release that contains the fix.

sudo dnf update python-unversioned-command

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