Out-of-bounds read in file - CVE-2014-9652

 

Out-of-bounds read in file - CVE-2014-9652

Published: November 27, 2018


Vulnerability identifier: #VU16103
CSH Severity: Low
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2014-9652
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause DoS condition.

The vulnerability exists due to 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. A remote attacker can cause out-of-bounds memory access and application crash via a crafted file.


Affected software

file
Debian Linux
php5 (Debian package)
php5 (Ubuntu package)
file (Debian package)

How to mitigate CVE-2014-9652

Install updates from vendor's website.

file - update to 5.21
php5 (Debian package) - addressed in versions 5.3.3-7+squeeze24, 5.4.36-0+deb7u3
php5 (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.16, 5.5.9+dfsg-1ubuntu4.6, 5.5.12+dfsg-2ubuntu4.2
file (Debian package) - update to 5.11-2+deb7u7

External References

Related Security Bulletins