RHSA-2025:14546MediumCVSS 7.5
Red Hat Security Advisory: python3.12 security update
🔗 CVE IDs covered (1)
📋 Description
CVE-2025-8194 — cpython: Cpython infinite loop when parsing a tarfile
🎯 Affected products59
- Red Hat Enterprise Linux AppStream (v. 8)
- Red Hat Enterprise Linux CRB (v. 8)
- python3.12-0:3.12.11-2.el8_10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-0:3.12.11-2.el8_10.i686 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-0:3.12.11-2.el8_10.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-0:3.12.11-2.el8_10.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-0:3.12.11-2.el8_10.src as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-0:3.12.11-2.el8_10.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debug-0:3.12.11-2.el8_10.aarch64 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debug-0:3.12.11-2.el8_10.i686 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debug-0:3.12.11-2.el8_10.ppc64le as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debug-0:3.12.11-2.el8_10.s390x as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debug-0:3.12.11-2.el8_10.x86_64 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.aarch64 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.i686 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.i686 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.ppc64le as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.s390x as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debuginfo-0:3.12.11-2.el8_10.x86_64 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debugsource-0:3.12.11-2.el8_10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debugsource-0:3.12.11-2.el8_10.aarch64 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debugsource-0:3.12.11-2.el8_10.i686 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debugsource-0:3.12.11-2.el8_10.i686 as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debugsource-0:3.12.11-2.el8_10.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- python3.12-debugsource-0:3.12.11-2.el8_10.ppc64le as a component of Red Hat Enterprise Linux CRB (v. 8)
- python3.12-debugsource-0:3.12.11-2.el8_10.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- +29 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: This flaw can be mitigated by adding the following code after importing the tarfile module ("import tarfile"): ~~~ import tarfile def _block_patched(self, count): if count < 0: # pragma: no cover raise tarfile.InvalidHeaderError("invalid offset") return _block_patched._orig_block(self, count) _block_patched._orig_block = tarfile.TarInfo._block tarfile.TarInfo._block = _block_patched ~~~