RHSA-2025:10189HighCVSS 7.6

Red Hat Security Advisory: python3.12 security update

Published
July 2, 2025
Last Modified
August 27, 2026

🔗 CVE IDs covered (5)

📋 Description

CVE-2024-12718 — cpython: python: Bypass extraction filter to modify file metadata outside extraction directory CVE-2025-4138 — cpython: python: Bypassing extraction filter to create symlinks to arbitrary targets outside extraction directory CVE-2025-4330 — cpython: python: Extraction filter bypass for linking outside extraction directory CVE-2025-4435 — cpython: Tarfile extracts filtered members when errorlevel=0 CVE-2025-4517 — python: cpython: Arbitrary writes via tarfile realpath overflow

🎯 Affected products58

  • Red Hat Enterprise Linux AppStream (v. 9)
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-0:3.12.9-1.el9_6.1.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-0:3.12.9-1.el9_6.1.i686 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-0:3.12.9-1.el9_6.1.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-0:3.12.9-1.el9_6.1.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-0:3.12.9-1.el9_6.1.src as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-0:3.12.9-1.el9_6.1.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debug-0:3.12.9-1.el9_6.1.aarch64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debug-0:3.12.9-1.el9_6.1.i686 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debug-0:3.12.9-1.el9_6.1.ppc64le as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debug-0:3.12.9-1.el9_6.1.s390x as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debug-0:3.12.9-1.el9_6.1.x86_64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.aarch64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.i686 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.i686 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.ppc64le as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.s390x as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debuginfo-0:3.12.9-1.el9_6.1.x86_64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debugsource-0:3.12.9-1.el9_6.1.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debugsource-0:3.12.9-1.el9_6.1.aarch64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debugsource-0:3.12.9-1.el9_6.1.i686 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debugsource-0:3.12.9-1.el9_6.1.i686 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debugsource-0:3.12.9-1.el9_6.1.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • python3.12-debugsource-0:3.12.9-1.el9_6.1.ppc64le as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
  • python3.12-debugsource-0:3.12.9-1.el9_6.1.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • +28 more not shown

✅ Remediation

For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Workaround: Red Hat recommends upgrading to a fixed release of Python as soon as one is available. This vulnerability can be mitigated by rejecting links inside tarfiles that use relative references to the parent directory. The upstream advisory provides this example code: ''' # Avoid insecure segments in link names. for member in tar.getmembers(): if not member.islnk(): continue if os.pardir in os.path.split(member.linkname): raise OSError("Tarfile with insecure segment ('..') in linkname") # Now safe to extract members with the data filter. tar.extractall(filter="data") '''

🔗 References (8)