CVE-2014-2270: Buffer Overflow
A flaw was found in the way the file utility determined the type of Portable Executable (PE) format files, the executable format used on Windows. A malicious PE file could cause the file utility to crash or, potentially, execute arbitrary code.
Upstream report: http://bugs.gw.com/view.php?id=313
Upstream fix: https://github.com/glensc/file/commit/447558595a3650db2886cd2f416ad0beba965801
Other sources
softmagic.c in file before 5.17 and libmagic allows context-dependent attackers to cause a denial of service (out-of-bounds memory access and crash) via crafted offsets in the softmagic of a PE executable.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/fileto a version that resolves this vulnerability.Fixed in 5.17 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.5.10 - Upgrade
Upgrade
debian/fileto a version that resolves this vulnerability.Fixed in 5.04-5+squeeze4Fixed in 5.11-2+deb7u2Fixed in 1:5.17-1 - Upgrade
Upgrade
debian/php5to a version that resolves this vulnerability.Fixed in 5.3.3-7+squeeze24Fixed in 5.4.4-14+deb7u10Fixed in 5.5.10+dfsg-1 - Upgrade
Upgrade
fileto a version that resolves this vulnerability.Fixed in 5.17
Event History
Frequently Asked Questions
What is the severity of CVE-2014-2270?
CVE-2014-2270 has been rated as a denial of service vulnerability due to out-of-bounds memory access.
How do I fix CVE-2014-2270?
To fix CVE-2014-2270, update to the latest versions of the affected software, ensuring you are beyond the specified vulnerable versions.
What software is affected by CVE-2014-2270?
CVE-2014-2270 affects the file utility before version 5.17, PHP versions prior to 5.4.26 and between 5.5.0 and 5.5.10, as well as several versions of Debian and Ubuntu.
What type of attack exploits CVE-2014-2270?
CVE-2014-2270 can be exploited by context-dependent attackers causing a denial of service through crafted offsets in the softmagic of a PE executable.
Is CVE-2014-2270 a critical vulnerability?
While CVE-2014-2270 is not classified as critical, it does pose a significant risk due to its potential to disrupt services.