CVE-2014-3587: Integer Overflow
A flaw was found in the way file uses cdfreadpropertyinfo function when checks stream offsets for certain Composite Document Format (CDF).An insufficient input validation flaw for p and q minimal and maximal value, leads to a pointer overflow.This issue only affects 32bit systems.
771 cdfreadpropertyinfo(const cdfstreamt sst, const cdfheadert h .. 835 q = (const uint8t )(const void ) 836 ((const char )(const void )p + ofs 837 - 2 sizeof(uint32t)); 838 if (q > e) { 839 DPRINTF(("Ran of the end %p > %p\n", q, e)); 840 goto out; 841 }
Upstream commit: https://github.com/file/file/commit/0641e56be1af003aa02c7c6b0184466540637233
Other sources
Integer overflow in the cdfreadpropertyinfo function in cdf.c in file through 5.19, as used in the Fileinfo component in PHP before 5.4.32 and 5.5.x before 5.5.16, allows remote attackers to cause a denial of service (application crash) via a crafted CDF file. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1571.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.5.16 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.4.32 - Upgrade
Upgrade
debian/fileto a version that resolves this vulnerability.Fixed in 5.04-5+squeeze7Fixed in 5.11-2+deb7u4Fixed in 1:5.19-2 - Upgrade
Upgrade
debian/php5to a version that resolves this vulnerability.Fixed in 5.3.3-7+squeeze22Fixed in 5.4.4-14+deb7u13Fixed in 5.6.0+dfsg-1 - Upgrade
Upgrade
PHP Fileinfoto a version that resolves this vulnerability.Fixed in 5.4.32 - Upgrade
Upgrade
PHP Fileinfoto a version that resolves this vulnerability.Fixed in 5.5.16
Event History
Frequently Asked Questions
What is the severity of CVE-2014-3587?
CVE-2014-3587 has a high severity due to the potential for denial of service attacks resulting in application crashes.
How do I fix CVE-2014-3587?
To fix CVE-2014-3587, upgrade to a version of the 'file' package that is 5.39 or higher.
What software is affected by CVE-2014-3587?
CVE-2014-3587 affects the 'file' package versions up to and including 5.19 and PHP versions before 5.4.32 and 5.5.x before 5.5.16.
Can attacking with a crafted CDF file exploit CVE-2014-3587?
Yes, attackers can exploit CVE-2014-3587 by sending crafted CDF files that can cause application crashes.
Is there a patch available for CVE-2014-3587?
Yes, patches are available in the newer versions of the 'file' package and PHP versions that address CVE-2014-3587.