Bug 1988558 (CVE-2021-32610)

Summary: CVE-2021-32610 php-pear: Directory traversal vulnerability
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anon.amish, fedora, hhorak, jorton, rcollet, rpm
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-03 19:04:02 UTC Type: ---
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: 1989192, 1989193, 1989194, 1989558, 1989559    
Bug Blocks: 1988559    

Description Pedro Sampaio 2021-07-30 19:53:47 UTC
In Archive_Tar before 1.4.14, symlinks can refer to targets outside of the extracted archive, a different vulnerability than CVE-2020-36193.

References:

https://github.com/pear/Archive_Tar/releases/tag/1.4.14
https://lists.debian.org/debian-lts-announce/2021/07/msg00023.html
https://www.drupal.org/sa-core-2021-004
https://github.com/pear/Archive_Tar/commit/b5832439b1f37331fb4f87e67fe4f

Comment 2 Garrett Tucker 2021-08-02 16:23:39 UTC
After analysis, the issue stems from a lack of checking if a symlink was outside of the archive. Since this check was not made, symlinks could be followed outside of the archive and lead to modification of the filesystem outside of the archive which could result in affecting existing files or creation of new files.

Comment 3 Garrett Tucker 2021-08-03 13:13:17 UTC
Created php-pear tracking bugs for this issue:

Affects: fedora-all [bug 1989558]

Comment 5 errata-xmlrpc 2022-11-08 09:52:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7628 https://access.redhat.com/errata/RHSA-2022:7628

Comment 6 Product Security DevOps Team 2022-12-03 19:04:01 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-32610