Bug 1255780 (CVE-2015-6527)

Summary: CVE-2015-6527 php: Arbitrary code execution in str_ireplace function
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bleanhar, ccoleman, dmcphers, fedora, jdetiber, jialiu, jkeck, jokerman, jorton, kseifried, lmeyer, mmaslano, mmccomas, rcollet, sardella, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-25 10:38:24 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: 1256315    
Bug Blocks: 1255784    

Description Adam Mariš 2015-08-21 14:30:25 UTC
A vulnerability was found in function str_ireplace, where the third arguments type $subject is not checked.
It is possible to control assembly registers, which could lead to arbitrary code execution.
Affected version is php 7.0.

CVE assignment:

http://seclists.org/oss-sec/2015/q3/411

Upstream patch:

https://github.com/php/php-src/commit/6aeee47b2cd47915ccfa3b41433a3f57aea24dd5

Upstream bug:

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

External reference:

(none)

Comment 1 Adam Mariš 2015-08-24 11:05:55 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1256315]

Comment 2 Stefan Cornelius 2015-08-25 10:36:50 UTC
Statement:

This issue did not affect the versions of php and php53 as shipped with Red Hat Enterprise Linux 5 and the versions of php as shipped with Red Hat Enterprise Linux 6 and 7.

Comment 3 Stefan Cornelius 2015-08-25 10:38:24 UTC
Seems like this is a PHP7 only issue. None of the php versions we ship should be affected.