CVE-2015-4605 json
The mcopy 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 befor…
published 10y ago modified 4mo ago also EUVD-2015-4625
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.1%
- EPSS 7.1% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
The mcopy 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 restrict a certain offset value, 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.
Patch / fix
- php54 RHEL 2 SOFTWARE_COLLECTIONS 2.0-1.el6
- php54 RHEL 2 SOFTWARE_COLLECTIONS 2.0-1.el7
- php54-php RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
- php54-php RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7
- php54-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
- php54-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7
- php54-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
- php54-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7
red hat advisories RHSA-2015:1066RHSA-2015:1186RHSA-2015:1135RHSA-2015:1187
Is CVE-2015-4605 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-4605 updated cvss 5.0
php: denial of service when processing a crafted file with Fileinfo
-
Red Hat Software Collections php54-php, php54-php-gd, php54-php-cli, php54-php-dba, php54-php-fpm, php54-php-pdo, +18 moreaffected: no fix available
-
Red Hat Enterprise Linux Client Optional (v. 7) php 5.4.16-36.el7_1, php-gd 5.4.16-36.el7_1, php-cli 5.4.16-36.el7_1, php-dba 5.4.16-36.el7_1, php-fpm 5.4.16-36.el7_1, php-pdo 5.4.16-36.el7_1, +18 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) php 5.4.16-36.el7_1, php-gd 5.4.16-36.el7_1, php-cli 5.4.16-36.el7_1, php-dba 5.4.16-36.el7_1, php-fpm 5.4.16-36.el7_1, php-pdo 5.4.16-36.el7_1, +18 more Red Hat Enterprise Linux Server (v. 7) php 5.4.16-36.el7_1, php 5.4.16-36.ael7b_1, php-gd 5.4.16-36.el7_1, php-cli 5.4.16-36.el7_1, php-pdo 5.4.16-36.el7_1, php-xml 5.4.16-36.el7_1, +22 more Red Hat Enterprise Linux Server Optional (v. 7) php-dba 5.4.16-36.el7_1, php-fpm 5.4.16-36.el7_1, php-intl 5.4.16-36.el7_1, php-snmp 5.4.16-36.el7_1, php-dba 5.4.16-36.ael7b_1, php-fpm 5.4.16-36.ael7b_1, +14 more Red Hat Enterprise Linux Workstation (v. 7) php 5.4.16-36.el7_1, php-gd 5.4.16-36.el7_1, php-cli 5.4.16-36.el7_1, php-pdo 5.4.16-36.el7_1, php-xml 5.4.16-36.el7_1, php-ldap 5.4.16-36.el7_1, +8 more Red Hat Enterprise Linux Workstation Optional (v. 7) php-dba 5.4.16-36.el7_1, php-fpm 5.4.16-36.el7_1, php-intl 5.4.16-36.el7_1, php-snmp 5.4.16-36.el7_1, php-bcmath 5.4.16-36.el7_1, php-pspell 5.4.16-36.el7_1, +4 morefixed: vendor fix RHSA-2015:1135
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php54 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-4.el6, php54-runtime 2.0-1.el6, php54-scldevel 2.0-1.el6, rh-php56-php 5.6.5-7.el6, +76 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php54 2.0-1.el7, php54-php 5.4.40-1.el7, php55-php 5.5.21-4.el7, php54-runtime 2.0-1.el7, php54-scldevel 2.0-1.el7, rh-php56-php 5.6.5-7.el7, +70 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php54 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-4.el6, php54-runtime 2.0-1.el6, php54-scldevel 2.0-1.el6, rh-php56-php 5.6.5-7.el6, +76 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php54 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-4.el6, php54-runtime 2.0-1.el6, php54-scldevel 2.0-1.el6, rh-php56-php 5.6.5-7.el6, +76 morefixed: vendor fix RHSA-2015:1066
-
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) php55-php 5.5.21-4.el7, rh-php56-php 5.6.5-7.el7, php55-php-gd 5.5.21-4.el7, php55-php-cli 5.5.21-4.el7, php55-php-dba 5.5.21-4.el7, php55-php-fpm 5.5.21-4.el7, +44 morefixed: vendor fix RHSA-2015:1186
-
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php54 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-4.el6, php54-runtime 2.0-1.el6, php54-scldevel 2.0-1.el6, rh-php56-php 5.6.5-7.el6, +76 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php54 2.0-1.el7, php54-php 5.4.40-1.el7, php55-php 5.5.21-4.el7, php54-runtime 2.0-1.el7, php54-scldevel 2.0-1.el7, rh-php56-php 5.6.5-7.el7, +70 morefixed: vendor fix RHSA-2015:1066
-
Red Hat Enterprise Linux 5 php, file, php53 Red Hat Enterprise Linux 6 php, file, php-gd, php-cli, php-dba, php-fpm, +23 more Red Hat Enterprise Linux 7 file, file-libs, python-magicnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
7.11% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugs.php.net https://bugs.php.net/bug.php?id=68819 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
bugs.php.net
/bug.php?id=68819
exploit
-
rhn.redhat.com
/errata/RHSA-2015-1187.html
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1186.html
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1135.html
vendor-advisory
-
securitytracker.com
/id/1032709
vdb-entry
- oracle.com /technetwork/topics/security/linuxbulletinjan2016-2867209.html
-
securityfocus.com
/bid/75233
vdb-entry
- php.net /ChangeLog-5.php
-
openwall.com
/lists/oss-security/2015/06/16/12
mailing-list
- git.php.net /?p=php-src.git%3Ba=commit%3Bh=f938112c495b0d26572435c0be73ac0bfe642ecd
Sources
- CVE List CVE-2015-4605
- NVD CVE-2015-4605
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.