Bug 1913846 (CVE-2020-7071)

Summary: CVE-2020-7071 php: FILTER_VALIDATE_URL accepts URLs with invalid userinfo
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, gkamathe, hhorak, jorton, rcollet, surpatil
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 7.3.27, php 7.4.15, php 8.0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-03 13:07:06 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: 1913847, 1923864, 1923865, 1923866, 1923867, 1923868, 1977768    
Bug Blocks: 1913849    

Description Guilherme de Almeida Suckevicz 2021-01-07 17:41:18 UTC
A security issue was found in the php_url_parse_ex() function in PHP, which leads to FILTER_VALIDATE_URL accepting URLs with invalid userinfo

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

Comment 1 Guilherme de Almeida Suckevicz 2021-01-07 17:41:33 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1913847]

Comment 2 Remi Collet 2021-01-29 07:28:48 UTC
PHP 7.3.26 includes a fix

https://github.com/php/php-src/commit/2d3d72412a6734e19a38ed10f385227a6238e4a6

But this fix introduces a BC break and have been reverted
and a new fix applied

https://github.com/php/php-src/commit/4a89e726bd4d0571991dc22a9a1ad4509e8fe347
https://github.com/php/php-src/commit/9c673083cd46ee2a954a62156acbe4b6e657c048

Will be part of upcoming 7.3.27

Comment 6 errata-xmlrpc 2021-08-03 09:15:53 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2021:2992 https://access.redhat.com/errata/RHSA-2021:2992

Comment 7 Product Security DevOps Team 2021-08-03 13:07:06 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-2020-7071

Comment 8 errata-xmlrpc 2021-11-09 17:45:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4213 https://access.redhat.com/errata/RHSA-2021:4213