Bug 1820604 (CVE-2020-7066)

Summary: CVE-2020-7066 php: Information disclosure in function get_headers
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fedora, hhorak, jorton, kyoshida, rcollet, security-response-team, tcrider, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 7.2.29, php 7.3.16, php 7.4.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-08 13:19:07 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: 1820605, 1821140, 1821141, 1821142, 1821143, 1857715    
Bug Blocks: 1820607    

Description Dhananjay Arunesh 2020-04-03 12:51:26 UTC
A vulnerability was found in PHP versions 7.2.x below 7.2.9, 7.3.x below 7.3.16 and 7.4.x below 7.4.34, while using get_headers() with user-supplied URL, if the URL contains zero (\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server.

Comment 1 Dhananjay Arunesh 2020-04-03 12:51:46 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1820605]

Comment 2 Dhananjay Arunesh 2020-04-03 12:53:45 UTC
External References:

https://bugs.php.net/bug.php?id=79329

Comment 3 Huzaifa S. Sidhpurwala 2020-04-06 07:14:39 UTC
Upstream patch: http://git.php.net/?p=php-src.git;a=commit;h=0c77b4307df73217283a4aaf9313e1a33a0967ff

Comment 8 errata-xmlrpc 2020-09-08 09:47:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:3662 https://access.redhat.com/errata/RHSA-2020:3662

Comment 9 Product Security DevOps Team 2020-09-08 13:19:07 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-7066

Comment 10 errata-xmlrpc 2020-12-01 12:03:20 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.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2020:5275 https://access.redhat.com/errata/RHSA-2020:5275