CVE-2015-8865
published 2016-05-20CVE-2015-8865: 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…
PriorityP338high7.3CVSS 3.0
AVLACLPRLUIRSUCHIHAH
EPSS
4.98%
91.2th percentile
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
37 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | mac_os_x | <= 10.11.4 | — |
| apple | os_x_el_capitan_v10.11.5_and_security_update_2016-003 | — | — |
| debian | file | < file 1:5.24-1 (bookworm) | file 1:5.24-1 (bookworm) |
| file_project | file | >= 0 < 1:5.24-1 | 1:5.24-1 |
| file_project | file | >= 0 < 1:5.24-1 | 1:5.24-1 |
| file_project | file | >= 0 < 1:5.24-1 | 1:5.24-1 |
| file_project | file | >= 0 < 1:5.24-1 | 1:5.24-1 |
| file_project | file | >= 0 < 1:5.14-2ubuntu3.4 | 1:5.14-2ubuntu3.4 |
| file_project | file | >= 0 < 1:5.25-2ubuntu1.1 | 1:5.25-2ubuntu1.1 |
| file_project | file | >= 0 < 1:5.32-2ubuntu0.1 | 1:5.32-2ubuntu0.1 |
| php | php | <= 5.5.33 | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
CVSS provenance
nvdv3.07.3HIGHCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv7.3HIGH
vendor_debian7.3HIGH
vendor_redhat7.3HIGH
vendor_ubuntu7.3HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
file vulnerabilities
vendor_ubuntu·2018-06-28·CVSS 7.3
CVE-2015-8865 [HIGH] file vulnerabilities
Title: file vulnerabilities
Summary: Several security issues were fixed in file.
USN-3686-1 fixed a vulnerability in file. This update provides
the corresponding update for Ubuntu 12.04 ESM.
Original advisory details:
It was discovered that file incorrectly handled certain magic files. An
attacker could use this issue with a specially crafted magic file to cause
a denial of service, or possibly execute arbitrary code. (CVE-2015-8865)
It was discovered that file incorrectly handled certain malformed ELF
files. An attacker could use this issue to cause a denial of service.
(CVE-2018-10360)
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
file vulnerabilities
vendor_ubuntu·2018-06-14·CVSS 5.0
CVE-2015-8865 [MEDIUM] file vulnerabilities
Title: file vulnerabilities
Summary: Several security issues were fixed in file.
Alexander Cherepanov discovered that file incorrectly handled a large
number of notes. An attacker could use this issue to cause a denial of
service. This issue only affected Ubuntu 14.04 LTS. (CVE-2014-9620)
Alexander Cherepanov discovered that file incorrectly handled certain long
strings. An attacker could use this issue to cause a denial of service.
This issue only affected Ubuntu 14.04 LTS. (CVE-2014-9621)
Alexander Cherepanov discovered that file incorrectly handled certain
malformed ELF files. An attacker could use this issue to cause a denial of
service, or possibly execute arbitrary code. This issue only affected
Ubuntu 14.04 LTS. (CVE-2014-9653)
It was discovered that file incorrectly handled ce
Ubuntu
PHP vulnerabilities
vendor_ubuntu·2016-05-24·CVSS 7.3
CVE-2015-8865 [HIGH] PHP vulnerabilities
Title: PHP vulnerabilities
Summary: Several security issues were fixed in PHP.
It was discovered that the PHP Fileinfo component incorrectly handled
certain magic files. An attacker could use this issue to cause PHP to
crash, resulting in a denial of service, or possibly execute arbitrary
code. This issue only affected Ubuntu 16.04 LTS. (CVE-2015-8865)
Hans Jerry Illikainen discovered that the PHP Zip extension incorrectly
handled certain malformed Zip archives. A remote attacker could use this
issue to cause PHP to crash, resulting in a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 16.04 LTS.
(CVE-2016-3078)
It was discovered that PHP incorrectly handled invalid indexes in the
SplDoublyLinkedList class. An attacker could use this issue to cause
Red Hat
file: Buffer over-write in finfo_open with malformed magic file
vendor_redhat·2016-02-23·CVSS 7.3
CVE-2015-8865 [HIGH] CWE-120 file: Buffer over-write in finfo_open with malformed magic file
file: Buffer over-write in finfo_open with malformed magic file
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.
Mitigation: Do not use untrusted magic files.
Package: cdrtools (Red Hat Enterprise Linux 5) - Will not fix
Package: file (Red Hat Enterprise Linux 5) - Will not fix
Package: php53 (Red Hat Enterprise Linux 5) - Will not fix
Package: rpm (Red Hat Enterprise Linux 5) - Will not fix
Package: file (Red Hat Enterprise Linux 6) - Will not fix
Package: php (Red Hat
Debian
CVE-2015-8865: file - The file_check_mem function in funcs.c in file before 5.23, as used in the Filei...
vendor_debian·2015·CVSS 7.3
CVE-2015-8865 [HIGH] CVE-2015-8865: file - The file_check_mem function in funcs.c in file before 5.23, as used in the Filei...
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.
Scope: local
bookworm: resolved (fixed in 1:5.24-1)
bullseye: resolved (fixed in 1:5.24-1)
forky: resolved (fixed in 1:5.24-1)
sid: resolved (fixed in 1:5.24-1)
trixie: resolved (fixed in 1:5.24-1)
Apple
CVE-2015-8865: OS X El Capitan v10.11.5 and Security Update 2016-003
vendor_apple·CVSS 7.3
CVE-2015-8865 [HIGH] CVE-2015-8865: OS X El Capitan v10.11.5 and Security Update 2016-003
Apple Security Update: About the security content of OS X El Capitan v10.11.5 and Security Update 2016-003
Product: OS X El Capitan v10.11.5 and Security Update 2016-003
CVE: CVE-2015-8865
Component: CVE-2015-8865
GHSA
GHSA-p546-wvpp-2wvf: The file_check_mem function in funcs
ghsa_unreviewed·2022-05-14
CVE-2015-8865 [HIGH] CWE-119 GHSA-p546-wvpp-2wvf: The file_check_mem function in funcs
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.
OSV
file vulnerabilities
osv·2018-06-14·CVSS 5.0
CVE-2014-9620 [MEDIUM] file vulnerabilities
file vulnerabilities
Alexander Cherepanov discovered that file incorrectly handled a large
number of notes. An attacker could use this issue to cause a denial of
service. This issue only affected Ubuntu 14.04 LTS. (CVE-2014-9620)
Alexander Cherepanov discovered that file incorrectly handled certain long
strings. An attacker could use this issue to cause a denial of service.
This issue only affected Ubuntu 14.04 LTS. (CVE-2014-9621)
Alexander Cherepanov discovered that file incorrectly handled certain
malformed ELF files. An attacker could use this issue to cause a denial of
service, or possibly execute arbitrary code. This issue only affected
Ubuntu 14.04 LTS. (CVE-2014-9653)
It was discovered that file incorrectly handled certain magic files. An
attacker could use this issue with a sp
OSV
php5, php7.0 vulnerabilities
osv·2016-05-24·CVSS 7.3
CVE-2015-8865 [HIGH] php5, php7.0 vulnerabilities
php5, php7.0 vulnerabilities
It was discovered that the PHP Fileinfo component incorrectly handled
certain magic files. An attacker could use this issue to cause PHP to
crash, resulting in a denial of service, or possibly execute arbitrary
code. This issue only affected Ubuntu 16.04 LTS. (CVE-2015-8865)
Hans Jerry Illikainen discovered that the PHP Zip extension incorrectly
handled certain malformed Zip archives. A remote attacker could use this
issue to cause PHP to crash, resulting in a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 16.04 LTS.
(CVE-2016-3078)
It was discovered that PHP incorrectly handled invalid indexes in the
SplDoublyLinkedList class. An attacker could use this issue to cause PHP to
crash, resulting in a denial of service, or
OSV
CVE-2015-8865: The file_check_mem function in funcs
osv·2016-05-20·CVSS 7.3
CVE-2015-8865 [HIGH] CVE-2015-8865: The file_check_mem function in funcs
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-8865 php: file: Buffer over-write in finfo_open with malformed magic file [fedora-all]
bugzilla·2016-04-04·CVSS 7.3
CVE-2015-8865 [HIGH] CVE-2015-8865 php: file: Buffer over-write in finfo_open with malformed magic file [fedora-all]
CVE-2015-8865 php: file: Buffer over-write in finfo_open with malformed magic file [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supp
Bugzilla
CVE-2015-8865 file: Buffer over-write in finfo_open with malformed magic file
bugzilla·2016-04-01·CVSS 7.3
CVE-2015-8865 [HIGH] CVE-2015-8865 file: Buffer over-write in finfo_open with malformed magic file
CVE-2015-8865 file: Buffer over-write in finfo_open with malformed magic file
Buffer over-write vulnerability in finfo_open triggered by malformed magic file was found, causing segfault when running with environment variable USE_ZEND_ALLOC set to 0, and also when compiled with ASAN with USE_ZEND_ALLOC set and unset.
This issue was fixed in file-5.23.
Upstream bug (contains reproducer):
http://bugs.gw.com/view.php?id=522
PHP bug:
https://bugs.php.net/bug.php?id=71527
Upstream patch:
https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36
https://git.php.net/?p=php-src.git;a=commit;h=fe13566c93f118a15a96320a546c7878fd0cfc5e
Discussion:
Created php tracking bugs for this issue:
Affects: fedora-all [bug 1323712]
---
php-5.6.20-1.fc22 has been pushed to the Fed
arXiv
Automatic Heap Layout Manipulation for Exploitation
arxiv_fulltext·2018-09-03
Automatic Heap Layout Manipulation for Exploitation
Automatic Heap Layout Manipulation for
Exploitation
Sean Heelan
[email protected]
University of Oxford
Tom Melham
[email protected]
University of Oxford
Daniel Kroening
[email protected]
University of Oxford
empty
### Abstract
Heap layout manipulation is integral to exploiting heap-based memory
corruption vulnerabilities. In this paper we present the first automatic
approach to the problem, based on pseudo-random black-box search. Our
approach searches for the inputs required to place the source of a
heap-based buffer overflow or underflow next to heap-allocated objects that
an exploit developer, or automatic exploit generation system, wishes to read
or corrupt. We present a framework for benchmarking heap layout
manipulation algorithms, and use it to evaluate our
http://bugs.gw.com/view.php?id=522http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=fe13566c93f118a15a96320a546c7878fd0cfc5ehttp://lists.apple.com/archives/security-announce/2016/May/msg00004.htmlhttp://lists.opensuse.org/opensuse-security-announce/2016-04/msg00057.htmlhttp://rhn.redhat.com/errata/RHSA-2016-2750.htmlhttp://www.debian.org/security/2016/dsa-3560http://www.openwall.com/lists/oss-security/2016/04/24/1http://www.php.net/ChangeLog-5.phphttp://www.php.net/ChangeLog-7.phphttp://www.securityfocus.com/bid/85802http://www.ubuntu.com/usn/USN-2952-1http://www.ubuntu.com/usn/USN-2952-2https://bugs.php.net/bug.php?id=71527https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731https://security.gentoo.org/glsa/201611-22https://security.gentoo.org/glsa/201701-42https://support.apple.com/HT206567https://usn.ubuntu.com/3686-1/https://usn.ubuntu.com/3686-2/http://bugs.gw.com/view.php?id=522http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=fe13566c93f118a15a96320a546c7878fd0cfc5ehttp://lists.apple.com/archives/security-announce/2016/May/msg00004.htmlhttp://lists.opensuse.org/opensuse-security-announce/2016-04/msg00057.htmlhttp://rhn.redhat.com/errata/RHSA-2016-2750.htmlhttp://www.debian.org/security/2016/dsa-3560http://www.openwall.com/lists/oss-security/2016/04/24/1http://www.php.net/ChangeLog-5.phphttp://www.php.net/ChangeLog-7.phphttp://www.securityfocus.com/bid/85802http://www.ubuntu.com/usn/USN-2952-1http://www.ubuntu.com/usn/USN-2952-2https://bugs.php.net/bug.php?id=71527https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731https://security.gentoo.org/glsa/201611-22https://security.gentoo.org/glsa/201701-42https://support.apple.com/HT206567https://usn.ubuntu.com/3686-1/https://usn.ubuntu.com/3686-2/
2016-05-20
Published