Bug 1551039 (CVE-2018-7584)

Summary: CVE-2018-7584 php: Stack-based buffer under-read in php_stream_url_wrap_http_ex() in http_fopen_wrapper.c when parsing HTTP response
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: crrobins, czinda, ealcaniz, fedora, hhorak, jorton, jsenkyri, ravpatil, rcollet, sfowler, webstack-team, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.6.34, php 7.0.28, php 7.1.15, php 7.2.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 08:47:05 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: 1551040, 1551041, 1552940, 1552941, 1552942, 1552943, 1552944    
Bug Blocks: 1551043    

Description Adam Mariš 2018-03-02 15:55:06 UTC
In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while parsing an HTTP response in the php_stream_url_wrap_http_ex function in ext/standard/http_fopen_wrapper.c. This subsequently results in copying a large string. 

Upstream bug:

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

Upstream patch:

https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba

Comment 1 Adam Mariš 2018-03-02 15:55:28 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1551040]

Comment 16 errata-xmlrpc 2019-08-19 08:41:01 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.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2019:2519 https://access.redhat.com/errata/RHSA-2019:2519

Comment 17 Product Security DevOps Team 2019-08-19 08:47:05 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-2018-7584

Comment 19 errata-xmlrpc 2020-03-31 19:23:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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