Improper input validation in PHP - CVE-2015-4604

 

Improper input validation in PHP - CVE-2015-4604

Published: November 27, 2018


Vulnerability identifier: #VU16129
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2015-4604
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to an error in mget function in softmagic.c in file 5.x, as used in the Fileinfo component in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8, does not properly maintain a certain pointer relationship. A remote attacker can cause the service to crash or execute arbitrary code via a crafted string that is mishandled by a "Python script text executable" rule.

Successful exploitation of the vulnerability may result in system compromise.

Affected software

PHP
php5 (Ubuntu package)

How to mitigate CVE-2015-4604

Install update from vendor's website.

PHP - addressed in versions 5.4.40, 5.5.24, 5.6.8
php5 (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.19, 5.5.9+dfsg-1ubuntu4.11, 5.5.12+dfsg-2ubuntu4.6, 5.6.4+dfsg-4ubuntu6.2

External References

Related Security Bulletins