The mget function in softmagic.c in file 5.x, as used in the Fileinfo component in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8, does not properly maintain a certain pointer relationship, which allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted string that is mishandled by a “Python script text executable” rule.
git.php.net/?p=php-src.git%3Ba=commit%3Bh=f938112c495b0d26572435c0be73ac0bfe642ecd
php.net/ChangeLog-5.php
rhn.redhat.com/errata/RHSA-2015-1135.html
rhn.redhat.com/errata/RHSA-2015-1186.html
rhn.redhat.com/errata/RHSA-2015-1187.html
www.openwall.com/lists/oss-security/2015/06/16/12
www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
www.securityfocus.com/bid/75241
www.securitytracker.com/id/1032709
bugs.php.net/bug.php?id=68819