Red Hat Security Advisory: python3 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 products133
- Red Hat Enterprise Linux AppStream AUS (v.8.6)
- Red Hat Enterprise Linux AppStream E4S (v.8.6)
- Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6)
- Red Hat Enterprise Linux AppStream TUS (v.8.6)
- Red Hat Enterprise Linux BaseOS AUS (v.8.6)
- Red Hat Enterprise Linux BaseOS E4S (v.8.6)
- Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.6)
- Red Hat Enterprise Linux BaseOS TUS (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.aarch64 as a component of Red Hat Enterprise Linux BaseOS E4S (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.i686 as a component of Red Hat Enterprise Linux AppStream AUS (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.i686 as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.i686 as a component of Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.i686 as a component of Red Hat Enterprise Linux AppStream TUS (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.s390x as a component of Red Hat Enterprise Linux BaseOS E4S (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.x86_64 as a component of Red Hat Enterprise Linux BaseOS AUS (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.x86_64 as a component of Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.6)
- platform-python-0:3.6.8-47.el8_6.8.x86_64 as a component of Red Hat Enterprise Linux BaseOS TUS (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.aarch64 as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.i686 as a component of Red Hat Enterprise Linux AppStream AUS (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.i686 as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.i686 as a component of Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.i686 as a component of Red Hat Enterprise Linux AppStream TUS (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.ppc64le as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.s390x as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.x86_64 as a component of Red Hat Enterprise Linux AppStream AUS (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.x86_64 as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6)
- platform-python-debug-0:3.6.8-47.el8_6.8.x86_64 as a component of Red Hat Enterprise Linux AppStream TUS (v.8.6)
- +103 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:10484
- 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_10484.json