CVE-2015-8865
file: Buffer over-write in finfo_open with malformed magic file
Severity
LowRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · February 23, 2016
Updated · November 2, 2026
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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Do not use untrusted magic files.
CVSS / CWE
CVSS 3.0 · 5.6CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS 2.0 · 5.1AV:N/AC:H/Au:N/C:P/I:P/A:P
CWE-120 · Buffer Copy without Checking Size of Input