Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

How RHEL provides secure and stable Python streams

March 13, 2025
Lumír Balhar
Related topics:
CI/CDPythonSecurity
Related products:
Red Hat Enterprise Linux

Share:

    Python is a core component of many enterprise environments. Red Hat Enterprise Linux (RHEL) provides security-compliant Python streams with long life cycles. This commitment applies to Python 3.12 in RHEL 10 and older Python versions that serve as the main interpreters, such as Python 3.6 in RHEL 8 and Python 3.9 in RHEL 9.

    Python in Fedora: The journey to stability

    The packaging and subsequent availability of Python 3.12 in Fedora followed a structured release cycle with the following milestones:

    Python 3.12 alpha 1

    • Upstream release: October 24, 2022
    • Available in all active Fedora releases: October 28, 2022

    Python 3.12 beta 1

    • Upstream release: May 22, 2023
    • Fedora release: May 26, 2023

    Python 3.12.0 (final release)

    • Upstream release: October 2, 2023
    • Fedora release: October 2, 2023

    During the process of packaging and making Python 3.12 the default interpreter for Fedora 39, we identified and resolved over 1200 issues in a diverse range of upstream projects. Even if you install packages from the Python Package Index (PyPI) into virtual or containerized environments, you will benefit from the substantial efforts that went into the wider Python ecosystem, ensuring a robust and secure experience.

    How to get Python 3.12 early

    For developers eager to use the latest Python versions as soon as possible, Red Hat’s Python maintenance team provides container images, named fedora-python-tox, on GitHub and Docker Hub. These curated images contain all active Python versions, including the latest and greatest. They also contain many useful tools in a compact package, making them ideal for CI/CD pipelines and accelerating access to the newest Python features before they become the default in stable distributions.

    Long-term support

    Python 3.12 will be the main Python interpreter in RHEL 10, supported throughout its entire lifecycle. To facilitate a smoother transition from previous RHEL versions, we are also providing Python 3.12 for RHEL 8 and RHEL 9. As the latest alternative Python stack in RHEL 8, Python 3.12 will remain supported until the end of the RHEL 8 lifecycle in 2029 (four years after the RHEL 10 release).

    Upstream support for Python 3.12 by the CPython core development team will officially end in October 2028, but RHEL users will continue receiving the necessary security fixes and updates well into the 2030s.

    Maintaining backward compatibility

    Our primary goal is to deliver backward-compatible security fixes that do not disrupt existing workflows. However, in cases where it is necessary to change behavior to address security issues, we offer multiple ways to configure or revert the new behaviors such as:

    • Environment variables
    • Configuration files
    • New function arguments

    Examples of mitigations: 

    • Web Cache Poisoning in the Python urllib library (CVE-2021-23336)

    • Directory traversal attack in the Python tarfile library (CVE-2007-4559)

    Thanks to these mechanisms, most behavior changes do not require modifications to your application code.

    Secure Python applications with RHEL

    By choosing Red Hat Enterprise Linux for your Python workloads, you gain access to a secure and stable interpreter for years to come, with continuous support and proactive issue resolution. Whether you're leveraging Fedora for early adoption or relying on RHEL for long-term stability, our commitment ensures that your Python applications remain reliable, stable, and secure.

    Stay ahead with the latest Python releases while enjoying the trusted enterprise support that RHEL provides. Learn more about Python from Red Hat experts, get updates, and try our tutorials at Red Hat Developer.

    Related Posts

    • Profiling Python Programs

    • The present and future of CI/CD with GitOps on Red Hat OpenShift

    • The Hypothesis Testing Library for Python: An Introduction

    • Use the Kubernetes Python client from your running Red Hat OpenShift pods

    Recent Posts

    • Storage considerations for OpenShift Virtualization

    • Upgrade from OpenShift Service Mesh 2.6 to 3.0 with Kiali

    • EE Builder with Ansible Automation Platform on OpenShift

    • How to debug confidential containers securely

    • Announcing self-service access to Red Hat Enterprise Linux for Business Developers

    What’s up next?

    Download the Advanced Linux Commands cheat sheet. You'll learn to manage applications and executables in a Linux operating system, define search criteria and query audit logs, set and monitor network access, and more.

    Get the cheat sheet
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue