CVE-2014-9652
The mconvert function in softmagic.c in file before 5.21, as used in the Fileinfo component in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5, does not properly handle a certain string-length field during a copy of a truncated version of a Pascal string, which might allow remote attackers to cause a denial of service (out-of-bounds memory access and application crash) via a crafted file.
What to do
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 14.04 | file | Fixed | 1:5.14-2ubuntu3.3 | UBUNTU-CVE-2014-9652 |
| Ubuntu 14.04 | php5 | Fixed | 5.5.9+dfsg-1ubuntu4.6 | UBUNTU-CVE-2014-9652 |
| Debian 14 | file | Fixed | 1:5.21+15-1 | DEBIAN-CVE-2014-9652 |
| Debian 13 | file | Fixed | 1:5.21+15-1 | DEBIAN-CVE-2014-9652 |
| Debian 12 | file | Fixed | 1:5.21+15-1 | DEBIAN-CVE-2014-9652 |
| Red Hat Enterprise Linux 7 | file | Fixed | 0:5.11-31.el7 | RHSA-2015:2155 |
| Red Hat Enterprise Linux 7 | file-devel | Fixed | 0:5.11-31.el7 | RHSA-2015:2155 |
| Red Hat Enterprise Linux 7 | file-libs | Fixed | 0:5.11-31.el7 | RHSA-2015:2155 |
| Red Hat Enterprise Linux 7 | file-static | Fixed | 0:5.11-31.el7 | RHSA-2015:2155 |
| Red Hat Enterprise Linux 7 | php | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-bcmath | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-cli | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-common | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-dba | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-devel | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-embedded | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-enchant | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-fpm | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-gd | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-intl | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-ldap | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mbstring | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mysql | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mysqlnd | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-odbc | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pdo | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pgsql | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-process | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pspell | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-recode | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-snmp | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-soap | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-xml | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-xmlrpc | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | python-magic | Fixed | 0:5.11-31.el7 | RHSA-2015:2155 |
| Red Hat Enterprise Linux 6 | file | Not affected | ||
| Red Hat Enterprise Linux 6 | file-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | file-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | file-static | Not affected | ||
| Red Hat Enterprise Linux 6 | php | Not affected | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 6 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 6 | php-common | Not affected | ||
| Red Hat Enterprise Linux 6 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 6 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 6 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 6 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 6 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 6 | php-imap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 6 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-process | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 6 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 6 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 6 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-tidy | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-zts | Not affected | ||
| Red Hat Enterprise Linux 6 | python-magic | Not affected | ||
| Red Hat Enterprise Linux 5 | cdrtools | Not affected | ||
| Red Hat Enterprise Linux 5 | file | Not affected | ||
| Red Hat Enterprise Linux 5 | php | Not affected | ||
| Red Hat Enterprise Linux 5 | php53 | Not affected | ||
| Red Hat Enterprise Linux 5 | rpm | Will not fix Will not fix |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://marc.info/?l=bugtraq&m=144050155601375&w=2 (vendor-advisory)
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html (vendor-advisory)
- http://marc.info/?l=bugtraq&m=143748090628601&w=2 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2015-03/msg00004.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2015-03/msg00003.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2015-03/msg00002.html (vendor-advisory)
References
- http://marc.info/?l=bugtraq&m=144050155601375&w=2
- http://www.securityfocus.com/bid/72505
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- http://marc.info/?l=bugtraq&m=143748090628601&w=2
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- http://lists.opensuse.org/opensuse-security-announce/2015-03/msg00004.html
- https://github.com/file/file/commit/59e63838913eee47f5c120a6c53d4565af638158
- http://php.net/ChangeLog-5.php
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
- https://support.apple.com/HT205267
- http://lists.opensuse.org/opensuse-security-announce/2015-03/msg00003.html
- https://bugs.php.net/patch-display.php?bug=68735&patch=bug68735.patch&revision=1420309079
- http://lists.opensuse.org/opensuse-security-announce/2015-03/msg00002.html
- http://rhn.redhat.com/errata/RHSA-2015-1135.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.