Bug 2218234
| Summary: | fence-agents: Python tarfile extraction needs change to avoid a warning (CVE-2007-4559 mitigation) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Charalampos Stratakis <cstratak> |
| Component: | fence-agents | Assignee: | Oyvind Albrigtsen <oalbrigt> |
| Status: | ON_QA --- | QA Contact: | Ilias Romanos <iromanos> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.9 | CC: | bperkins, cluster-maint, oalbrigt, pviktori |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.9 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | fence-agents-4.2.1-121.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2217902 | Environment: | |
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 263261, 2207715, 2218240, 2218243, 2218246, 2218248, 2218274, 2218277 | ||
| Bug Blocks: | |||
|
Description
Charalampos Stratakis
2023-06-28 13:59:30 UTC
Verified: Tested $ mkdir 2218234 $ cd 2218234 $ wget http://download.lab.eng.brq.redhat.com/rhel-8/composes/RHEL-8/RHEL-8.9.0-20230731.d.62/compose/AppStream/x86_64/os/Packages/fence-agents-kubevirt-4.2.1-120.el8.x86_64.rpm $ wget http://download.lab.eng.brq.redhat.com/rhel-8/composes/RHEL-8/RHEL-8.9.0-20230804.d.54/compose/AppStream/x86_64/os/Packages/fence-agents-kubevirt-4.2.1-121.el8.x86_64.rpm $ rpm2cpio fence-agents-kubevirt-4.2.1-120.el8.x86_64.rpm > fence-agents-kubevirt-4.2.1-120.cpio $ rpm2cpio fence-agents-kubevirt-4.2.1-121.el8.x86_64.rpm > fence-agents-kubevirt-4.2.1-121.cpio $ cpio -idv < fence-agents-kubevirt-4.2.1-120.cpio -D 4.2.1-120 $ cpio -idv < fence-agents-kubevirt-4.2.1-121.cpio -D 4.2.1-121 $ diff 4.2.1-120/usr/lib/fence-agents/bundled/kubevirt/dateutil/zoneinfo/rebuild.py 4.2.1-121/usr/lib/fence-agents/bundled/kubevirt/dateutil/zoneinfo/rebuild.py 24c24,29 < tf.extract(name, tmpdir) --- > if hasattr(tarfile, 'data_filter'): > # Python with CVE-2007-4559 mitigation (PEP 706) > tf.extract(name, tmpdir, filter='data') > else: > # Fallback to a possibly dangerous extraction (before PEP 706) > tf.extract(name, tmpdir) |