file: Buffer over-write in finfo_open with malformed magic file
Published May 20, 2016
7.3
HIGHCVSS 3.0
EPSS 5.48%
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.
Affected products
No data.
Configuration 1
- ≤ 5.5.33
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.1
- 5.6.2
- 5.6.3
- 5.6.4
- 5.6.5
- 5.6.6
- 5.6.7
- 5.6.8
- 5.6.9
- 5.6.10
- 5.6.11
- 5.6.12
- 5.6.13
- 5.6.14
- 5.6.15
- 5.6.16
- 5.6.17
- 5.6.18
- 5.6.19
- 7.0.0
- 7.0.1
- 7.0.2
- 7.0.3
- 7.0.4
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-0:2.3-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-php-0:5.6.25-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-php-pear-1:1.9.5-4.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-0:2.3-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-php-0:5.6.25-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-php-pear-1:1.9.5-4.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Enterprise Linux 5
cdrtools
Will not fix
Red Hat Enterprise Linux 5
file
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 5
rpm
Will not fix
Red Hat Enterprise Linux 6
file
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 7
file
Will not fix
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat Software Collections
php54-php
Will not fix
Red Hat Software Collections
php55-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-0:2.3-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-php-0:5.6.25-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-php-pear-1:1.9.5-4.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-0:2.3-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-php-0:5.6.25-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-php-pear-1:1.9.5-4.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Enterprise Linux 5 | cdrtools | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | file | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | rpm | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | file | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | file | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | php | Will not fix | n/a |
| Red Hat Software Collections | php54-php | Will not fix | n/a |
| Red Hat Software Collections | php55-php | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
Do not use untrusted magic files.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (42 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 5.48% (0.05483) | 92.52th | v5 (v2026.06.15) |
| Sep 22, 2026 | 5.42% (0.05415) | 92.34th | v5 (v2026.06.15) |
| Sep 21, 2026 | 11.79% (0.11785) | 95.95th | v5 (v2026.06.15) |
| Sep 6, 2026 | 5.42% (0.05415) | 92.17th | v5 (v2026.06.15) |
| Sep 5, 2026 | 11.79% (0.11785) | 95.86th | v5 (v2026.06.15) |
| Aug 30, 2026 | 5.42% (0.05415) | 92.13th | v5 (v2026.06.15) |
| Aug 28, 2026 | 11.79% (0.11785) | 95.84th | v5 (v2026.06.15) |
| Aug 24, 2026 | 5.42% (0.05415) | 92.08th | v5 (v2026.06.15) |
| Aug 23, 2026 | 11.79% (0.11785) | 95.83th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.98% (0.04985) | 91.07th | v5 (v2026.06.15) |
| Sep 16, 2025 | 0.83% (0.00830) | 73.69th | v4 (v2025.03.14) |
| Sep 4, 2025 | 3.70% (0.03701) | 87.50th | v4 (v2025.03.14) |
| Sep 1, 2025 | 0.62% (0.00622) | 69.31th | v4 (v2025.03.14) |
| Aug 20, 2025 | 3.70% (0.03701) | 87.49th | v4 (v2025.03.14) |
| Aug 4, 2025 | 5.04% (0.05044) | 89.36th | v4 (v2025.03.14) |
| Aug 1, 2025 | 0.89% (0.00887) | 74.63th | v4 (v2025.03.14) |
| Jul 30, 2025 | 5.04% (0.05044) | 89.34th | v4 (v2025.03.14) |
| Jul 13, 2025 | 6.09% (0.06088) | 90.33th | v4 (v2025.03.14) |
| Jul 4, 2025 | 4.49% (0.04485) | 88.61th | v4 (v2025.03.14) |
| Jul 1, 2025 | 0.94% (0.00940) | 75.30th | v4 (v2025.03.14) |
| Jun 4, 2025 | 4.49% (0.04485) | 88.55th | v4 (v2025.03.14) |
| Jun 1, 2025 | 0.94% (0.00940) | 75.21th | v4 (v2025.03.14) |
| May 30, 2025 | 4.49% (0.04485) | 88.52th | v4 (v2025.03.14) |
| May 4, 2025 | 2.26% (0.02258) | 83.69th | v4 (v2025.03.14) |
| May 1, 2025 | 0.56% (0.00556) | 66.96th | v4 (v2025.03.14) |
| Apr 13, 2025 | 2.26% (0.02258) | 83.23th | v4 (v2025.03.14) |
| Apr 12, 2025 | 0.56% (0.00556) | 65.63th | v4 (v2025.03.14) |
| Apr 4, 2025 | 2.26% (0.02258) | 83.20th | v4 (v2025.03.14) |
| Apr 3, 2025 | 0.56% (0.00556) | 65.60th | v4 (v2025.03.14) |
| Apr 2, 2025 | 2.26% (0.02258) | 83.18th | v4 (v2025.03.14) |
| Apr 1, 2025 | 0.56% (0.00556) | 65.56th | v4 (v2025.03.14) |
| Mar 28, 2025 | 2.26% (0.02258) | 83.13th | v4 (v2025.03.14) |
| Mar 27, 2025 | 0.56% (0.00556) | 65.05th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.26% (0.02258) | 83.44th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.40% (0.00400) | 74.43th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.40% (0.00400) | 72.90th | v3 (v2023.03.01) |
| Jan 6, 2024 | 0.40% (0.00400) | 70.85th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.20% (0.00198) | 55.90th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.74% (0.01736) | 76.19th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.74% (0.01736) | 76.14th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.74% (0.01736) | 74.07th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.74% (0.01736) | 53.34th | v2 (v2022.01.01) |
References (24)
- http://bugs.gw.com/view.php?id=522 x_refsource_CONFIRM
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=fe13566c93f118a15a96320a546c7878fd0cfc5e x_refsource_CONFIRM
- http://lists.apple.com/archives/security-announce/2016/May/msg00004.html vendor-advisoryx_refsource_APPLE
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00057.html vendor-advisoryx_refsource_SUSE
- http://rhn.redhat.com/errata/RHSA-2016-2750.html vendor-advisoryx_refsource_REDHAT
- http://www.debian.org/security/2016/dsa-3560 vendor-advisoryx_refsource_DEBIAN
- http://www.openwall.com/lists/oss-security/2016/04/24/1 mailing-listx_refsource_MLIST
- http://www.php.net/ChangeLog-5.php x_refsource_CONFIRM
- http://www.php.net/ChangeLog-7.php x_refsource_CONFIRM
- http://www.securityfocus.com/bid/85802 vdb-entryx_refsource_BID
- http://www.ubuntu.com/usn/USN-2952-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-2952-2 vendor-advisoryx_refsource_UBUNTU
- https://access.redhat.com/security/cve/CVE-2015-8865 Vendor Advisory
- https://bugs.php.net/bug.php?id=71527 x_refsource_CONFIRMExploit
- https://bugzilla.redhat.com/show_bug.cgi?id=1323118 Issue Tracking
- https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36 x_refsource_CONFIRM
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2015-8865
- https://security.gentoo.org/glsa/201611-22 vendor-advisoryx_refsource_GENTOO
- https://security.gentoo.org/glsa/201701-42 vendor-advisoryx_refsource_GENTOO
- https://support.apple.com/HT206567 x_refsource_CONFIRM
- https://usn.ubuntu.com/3686-1/ vendor-advisoryx_refsource_UBUNTU
- https://usn.ubuntu.com/3686-2/ vendor-advisoryx_refsource_UBUNTU
- https://www.cve.org/CVERecord?id=CVE-2015-8865
Change history (0)
No recorded changes yet.