Bug 1255780 (CVE-2015-6527) - CVE-2015-6527 php: Arbitrary code execution in str_ireplace function
Summary: CVE-2015-6527 php: Arbitrary code execution in str_ireplace function
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2015-6527
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1256315
Blocks: 1255784
TreeView+ depends on / blocked
 
Reported: 2015-08-21 14:30 UTC by Adam Mariš
Modified: 2023-09-25 05:55 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-25 10:38:24 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.