CVE-2014-9653: Input Validation
It was reported [1][2] that a malformed elf file can cause file urility to access invalid memory. Upstream fixes that correct this: https://github.com/file/file/commit/445c8fb0ebff85195be94cd9f7e1df89cade5c7f https://github.com/file/file/commit/e96f86b5311572be1360ee0bb05d4926f8df3189
[1]: http://mx.gw.com/pipermail/file/2014/001649.html [2]: http://bugs.gw.com/view.php?id=409
Other sources
readelf.c in file before 5.22, 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 consider that pread calls sometimes read only a subset of the available data, which allows remote attackers to cause a denial of service (uninitialized memory access) or possibly have unspecified other impact via a crafted ELF file.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/fileto a version that resolves this vulnerability.Fixed in 1:5.39-3+deb11u1Fixed in 1:5.44-3Fixed in 1:5.46-5 - Upgrade
Upgrade
redhat/fileto a version that resolves this vulnerability.Fixed in 5.22 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.22 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.4.37 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.5.21 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.6.5
Event History
Frequently Asked Questions
What is CVE-2014-9653?
CVE-2014-9653 is a vulnerability in the Fileinfo component in PHP before version 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5.
How does CVE-2014-9653 work?
CVE-2014-9653 allows remote attackers to cause a denial of service by exploiting a flaw in the readelf.c file.
What is the severity of CVE-2014-9653?
CVE-2014-9653 has a severity rating of 7.5 (high).
Which software versions are affected by CVE-2014-9653?
The affected software versions include file before 5.22 and PHP before 5.6.5.
How can I fix CVE-2014-9653?
To fix CVE-2014-9653, update PHP to version 5.4.37, 5.5.21, or 5.6.5 and file to version 5.22 or later.