CVE-2015-8865

HIGH

PHP < 5.5.34, 5.6.x < 5.6.20, 7.x < 7.0.5 - Buffer Overflow in Fileinfo Component

Title source: llm
STIX 2.1

Description

The file_check_mem function in funcs.c in file before 5.23, as used in the Fileinfo component in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5, mishandles continuation-level jumps, which allows context-dependent attackers to cause a denial of service (buffer overflow and application crash) or possibly execute arbitrary code via a crafted magic file.

References (20)

Core 20
Core References
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-2952-1
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-7.php
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201611-22
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/85802
Vendor Advisory x_refsource_confirm
https://support.apple.com/HT206567
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3686-1/
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2750.html
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2016/dsa-3560
Exploit x_refsource_confirm
https://bugs.php.net/bug.php?id=71527
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-2952-2
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3686-2/
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce/2016/May/msg00004.html
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-5.php
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201701-42
Mailing List mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/04/24/1
Various Sources x_refsource_confirm
http://bugs.gw.com/view.php?id=522

Scores

CVSS v3 7.3
EPSS 0.0101
EPSS Percentile 77.4%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-119
Status published
Products (27)
apple/mac_os_x < 10.11.4
php/php 5.6.0 alpha1 (9 CPE variants)
php/php 5.6.1
php/php 5.6.2
php/php 5.6.3
php/php 5.6.4
php/php 5.6.5
php/php 5.6.6
php/php 5.6.7
php/php 5.6.8
... and 17 more
Published May 20, 2016
Tracked Since Feb 18, 2026