Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

How RHEL provides secure and stable Python streams

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

    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

    • Tekton joins the CNCF as an incubating project

    • Federated identity across the hybrid cloud using zero trust workload identity manager

    • Confidential virtual machine storage attack scenarios

    • Introducing virtualization platform autopilot

    • Integrate zero trust workload identity manager with Red Hat OpenShift GitOps

    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

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    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
    © 2026 Red Hat

    Red Hat legal and privacy links

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

    Chat Support

    Please log in with your Red Hat account to access chat support.