Bug 2219388
| Summary: | [RHEL8] pcs: Python tarfile extraction needs change to avoid a warning (CVE-2007-4559 mitigation) | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Petr Viktorin <pviktori> | |
| Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | |
| Status: | ON_QA --- | QA Contact: | cluster-qe <cluster-qe> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 8.9 | CC: | cluster-maint, cstratak, idevat, mlisik, mmazoure, mpospisi, nhostako, omular, tojeline | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | 8.9 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | pcs-0.10.17-2.el8 | Doc Type: | Bug Fix | |
| Doc Text: |
I suppose this is going to be documented together with bz263261
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 2219407 (view as bug list) | 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 | |||
| Bug Blocks: | 2219407 | |||
|
Description
Petr Viktorin
2023-07-03 12:29:05 UTC
Upstream patch: https://github.com/ClusterLabs/pcs/commit/44301c7ba83c5efa9db1113bd9491de796ebded4 Test: Make sure to install patched python packages - they make unpatched pcs print a warning. [root@rh88-node1:~]# rpm -q platform-python platform-python-3.6.8-52.el8.x86_64 Before fix: [root@rh88-node1:~]# pcs config restore /root/backup.tar.bz2 --local /usr/lib64/python3.6/tarfile.py:2214: RuntimeWarning: The default behavior of tarfile extraction has been changed to disallow common exploits (including CVE-2007-4559). By default, absolute/parent paths are disallowed and some mode bits are cleared. See https://access.redhat.com/articles/7004769 for more details. RuntimeWarning) [root@rh88-node1:~]# echo $? 0 After fix: [root@rh88-node1:~]# pcs/pcs config restore /root/backup.tar.bz2 --local [root@rh88-node1:~]# echo $? 0 Verify, that 'pcs config restore' and 'pcs config restore --local' works - if in doubt, see bz1024492 for original tests. DevTestResults: [root@r08-09-a ~]# pcs config backup /root/backup.tar.bz2 [root@r08-09-a ~]# pcs cluster destroy Shutting down pacemaker/corosync services... Killing any remaining services... Removing all cluster configuration files... [root@r08-09-a ~]# pcs config restore /root/backup.tar.bz2 --local [root@r08-09-a ~]# echo $? 0 |