CVE-2014-9652: Buffer Overflow
Out of bounds memory read was reported in file utility [1], which also affects PHP fileinfo module. Upstream fix that resolves this for file utility: https://github.com/file/file/commit/59e63838913eee47f5c120a6c53d4565af638158
PHP upstream fix: https://github.com/php/php-src/commit/ede59c8feb4b80e1b94e4abdaa0711051e2912ab
[1]: http://bugs.gw.com/view.php?id=398
Other sources
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.
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.4.37 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.5.21 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.6.5 - Upgrade
Upgrade
redhat/fileto a version that resolves this vulnerability.Fixed in 5.21 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.21 - 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 the severity of CVE-2014-9652?
CVE-2014-9652 is classified as a medium severity vulnerability due to its potential for remote code execution.
How do I fix CVE-2014-9652?
To fix CVE-2014-9652, upgrade PHP to version 5.4.37, 5.5.21, or 5.6.5 or later.
What software versions are affected by CVE-2014-9652?
CVE-2014-9652 affects PHP versions before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5.
What does CVE-2014-9652 exploit?
CVE-2014-9652 exploits improper handling of a certain string-length field during the processing of truncated Pascal strings.
Can CVE-2014-9652 be exploited by remote attackers?
Yes, CVE-2014-9652 can potentially allow remote attackers to execute arbitrary code on vulnerable systems.