Bug 2026045 (CVE-2021-21707) - CVE-2021-21707 php: Special character breaks path in xml parsing
Summary: CVE-2021-21707 php: Special character breaks path in xml parsing
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-21707
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2026046 2026647 2026648 2026649 2026650 2100757
Blocks: 2026047
TreeView+ depends on / blocked
 
Reported: 2021-11-23 17:09 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-11-08 09:52 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-07-04 15:24:30 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:5493 0 None None None 2022-07-04 11:38:19 UTC
Red Hat Product Errata RHSA-2022:5491 0 None None None 2022-07-04 07:43:18 UTC
Red Hat Product Errata RHSA-2022:7628 0 None None None 2022-11-08 09:52:15 UTC

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


Note You need to log in before you can comment on or make changes to this bug.