CVE-2014-3478: Buffer Overflow
A flaw was found in the way file compute the truncated pascal string size in mconvert() function.
Upstream commit: https://github.com/file/file/commit/27a14bc7ba285a0a5ebfdb55e54001aa11932b08
Acknowledgment:
This issue was discovered by Francisco Alonso of Red Hat Product Security.
Other sources
Buffer overflow in the mconvert function in softmagic.c in file before 5.19, as used in the Fileinfo component in PHP before 5.4.30 and 5.5.x before 5.5.14, allows remote attackers to cause a denial of service (application crash) via a crafted Pascal string in a FILEPSTRING conversion.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/fileto a version that resolves this vulnerability.Fixed in 5.04-5+squeeze6Fixed in 5.11-2+deb7u4Fixed in 1:5.19-1 - Upgrade
Upgrade
debian/php5to a version that resolves this vulnerability.Fixed in 5.4.4-14+deb7u12Fixed in 5.6.0~rc1+dfsg-1 - Upgrade
Upgrade
fileto a version that resolves this vulnerability.Fixed in 5.19 - Upgrade
Upgrade
PHP Fileinfoto a version that resolves this vulnerability.Fixed in 5.4.30 - Upgrade
Upgrade
PHP Fileinfoto a version that resolves this vulnerability.Fixed in 5.5.14
Event History
Frequently Asked Questions
What is the severity of CVE-2014-3478?
CVE-2014-3478 has a severity level that can lead to denial of service due to a buffer overflow issue.
How do I fix CVE-2014-3478?
To fix CVE-2014-3478, upgrade to Software version 5.19 or higher for the affected 'file' component.
What software is affected by CVE-2014-3478?
CVE-2014-3478 affects versions of PHP before 5.4.30 and 5.5.x before 5.5.14, as well as 'file' versions before 5.19.
What type of attack does CVE-2014-3478 enable?
CVE-2014-3478 enables remote attackers to cause an application crash through crafted Pascal strings.
Can CVE-2014-3478 be exploited remotely?
Yes, CVE-2014-3478 can be exploited remotely via specially crafted inputs to the vulnerable functions.