Bug 2026045 (CVE-2021-21707)

Summary: CVE-2021-21707 php: Special character breaks path in xml parsing
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: fedora, hhorak, jorton, rcollet
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php-8.1.0 php-7.3.33 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in php. The main cause of this vulnerability is improper input validation while parsing an Extensible Markup Language(XML) entity. A special character could allow an attacker to traverse directories. The highest threat from this vulnerability is confidentiality.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-04 15:24:30 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: 2026046, 2026647, 2026648, 2026649, 2026650, 2100757    
Bug Blocks: 2026047    

Description Guilherme de Almeida Suckevicz 2021-11-23 17:09:46 UTC
A flaw was found in PHP. A special character is breaking the path in XML function.

Reference:
https://bugs.php.net/bug.php?id=79971

Upstream patch:
https://github.com/php/php-src/commit/f15f8fc573eb38c3c73e23e0930063a6f6409ed4

Comment 1 Guilherme de Almeida Suckevicz 2021-11-23 17:11:08 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 2026046]

Comment 4 errata-xmlrpc 2022-07-04 07:43:15 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

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

Comment 5 Product Security DevOps Team 2022-07-04 15:24:28 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-21707

Comment 6 errata-xmlrpc 2022-11-08 09:52:13 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