Red Hat Security Advisory: python3.12 security update
🔗 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 products57
- Red Hat Enterprise Linux AppStream (v. 10)
- Red Hat Enterprise Linux BaseOS (v. 10)
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python-unversioned-command-0:3.12.9-2.el10_0.2.noarch as a component of Red Hat Enterprise Linux AppStream (v. 10)
- python3-0:3.12.9-2.el10_0.2.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- python3-0:3.12.9-2.el10_0.2.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- python3-0:3.12.9-2.el10_0.2.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- python3-0:3.12.9-2.el10_0.2.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- python3-debug-0:3.12.9-2.el10_0.2.aarch64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-debug-0:3.12.9-2.el10_0.2.ppc64le as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-debug-0:3.12.9-2.el10_0.2.s390x as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-debug-0:3.12.9-2.el10_0.2.x86_64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-devel-0:3.12.9-2.el10_0.2.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
- python3-devel-0:3.12.9-2.el10_0.2.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 10)
- python3-devel-0:3.12.9-2.el10_0.2.s390x as a component of Red Hat Enterprise Linux AppStream (v. 10)
- python3-devel-0:3.12.9-2.el10_0.2.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
- python3-idle-0:3.12.9-2.el10_0.2.aarch64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-idle-0:3.12.9-2.el10_0.2.ppc64le as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-idle-0:3.12.9-2.el10_0.2.s390x as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-idle-0:3.12.9-2.el10_0.2.x86_64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-libs-0:3.12.9-2.el10_0.2.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- python3-libs-0:3.12.9-2.el10_0.2.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- python3-libs-0:3.12.9-2.el10_0.2.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- python3-libs-0:3.12.9-2.el10_0.2.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 10)
- python3-test-0:3.12.9-2.el10_0.2.aarch64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-test-0:3.12.9-2.el10_0.2.ppc64le as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-test-0:3.12.9-2.el10_0.2.s390x as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-test-0:3.12.9-2.el10_0.2.x86_64 as a component of Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- python3-tkinter-0:3.12.9-2.el10_0.2.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 10)
- python3-tkinter-0:3.12.9-2.el10_0.2.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 10)
- +27 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)
- selfhttps://access.redhat.com/errata/RHSA-2025:10140
- externalhttps://access.redhat.com/security/updates/classification/#important
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2370010
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2370013
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2370014
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2370016
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2372426
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_10140.json