Bug 2207691
| Summary: | python3-lib389: Python tarfile extraction needs change to avoid a warning (CVE-2007-4559 mitigation) | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Petr Viktorin <pviktori> | |
| Component: | 389-ds-base | Assignee: | LDAP Maintainers <idm-ds-dev-bugs> | |
| Status: | VERIFIED --- | QA Contact: | LDAP QA Team <idm-ds-qe-bugs> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.3 | CC: | bsmejkal, idm-ds-dev-bugs, mreynolds, vashirov | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | 9.3 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | sync-to-jira | |||
| Fixed In Version: | 389-ds-base-2.3.6-2.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2218235 (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: | ||||
|
Description
Petr Viktorin
2023-05-16 14:29:06 UTC
Builds tested: 389-ds-base-2.3.6-2.el9.x86_64 python3-lib389-2.3.6-2.el9.noarch A filter was added: $ grep -inr -A1 tarfile.open /usr/lib/python3.9/site-packages/lib389 /usr/lib/python3.9/site-packages/lib389/__init__.py:1380: tar = tarfile.open(backup_file, "w:gz") /usr/lib/python3.9/site-packages/lib389/__init__.py-1381- tar.extraction_filter = (lambda member, path: member) -- /usr/lib/python3.9/site-packages/lib389/__init__.py:1454: tar = tarfile.open(backup_file) /usr/lib/python3.9/site-packages/lib389/__init__.py-1455- tar.extraction_filter = (lambda member, path: member) -- /usr/lib/python3.9/site-packages/lib389/tools.py:303: tar = tarfile.open(backup_file, "w:gz") /usr/lib/python3.9/site-packages/lib389/tools.py-304- tar.extraction_filter = (lambda member, path: member) -- /usr/lib/python3.9/site-packages/lib389/tools.py:362: tar = tarfile.open(backup_file) /usr/lib/python3.9/site-packages/lib389/tools.py-363- tar.extraction_filter = (lambda member, path: member) Moreover, this code is in functions that are not used by any other code in lib389: lib389.backupFS lib389.restoreFS lib389.tools.instanceBackupFS lib389.tools.instanceRestoreFS These were implemented to speed up testing, but since then were replaced by pytest fixtures. They will be removed in https://github.com/389ds/389-ds-base/issues/5875 As per comment #c1 marking as VERIFIED. |