Bug 1245236 (CVE-2015-5589)

Summary: CVE-2015-5589 php: segmentation fault in Phar::convertToData on invalid file
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dmasirka, fedora, jorton, mdshaikh, mmaslano, rcollet, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.6.11, php 5.5.27, php 5.4.43 Doc Type: Bug Fix
Doc Text:
A flaw was found in the way the way PHP's Phar extension parsed Phar archives. A specially crafted archive could cause PHP to crash or, possibly, execute arbitrary code when opened.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-18 06:25:15 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: 1245245, 1305850, 1305851    
Bug Blocks: 1245244, 1306180    

Description Vasyl Kaigorodov 2015-07-21 14:24:31 UTC
The following issue was reported in PHP:

PHP process crashes when processing an invalid file with the "phar" extension.

CVE assignment: http://seclists.org/oss-sec/2015/q3/147
Upstream bug: https://bugs.php.net/bug.php?id=69958
Upstream commit: http://git.php.net/?p=php-src.git;a=commit;h=bf58162ddf970f63502837f366930e44d6a992cf

Comment 1 Vasyl Kaigorodov 2015-07-21 14:35:06 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1245245]

Comment 2 Fedora Update System 2015-07-29 01:58:05 UTC
php-5.6.11-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Huzaifa S. Sidhpurwala 2015-08-18 06:18:07 UTC
This issue was fixed in php-5.6.11, php-5.5.27 and php-5.4.43 as per the changelog at:

http://php.net/ChangeLog-5.php

Comment 7 errata-xmlrpc 2016-03-15 20:56:46 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6

Via RHSA-2016:0457 https://rhn.redhat.com/errata/RHSA-2016-0457.html