Input validation error in PHP - CVE-2015-5589

 

Input validation error in PHP - CVE-2015-5589

Published: May 16, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32405
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-5589
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The phar_convert_to_other function in ext/phar/phar_object.c in PHP before 5.4.43, 5.5.x before 5.5.27, and 5.6.x before 5.6.11 does not validate a file pointer before a close operation, which allows remote attackers to cause a denial of service (segmentation fault) or possibly have unspecified other impact via a crafted TAR archive that is mishandled in a Phar::convertToData call.


Affected software

PHP
Amazon Linux AMI
Fedora
php (Alpine package)
php

How to mitigate CVE-2015-5589

Install update from vendor's website.

PHP - addressed in versions 5.4.43, 5.5.27, 5.6.11
php (Alpine package) - update to 5.5.27-r0
php - update to 5.6.11-1.fc21

External References

Related Security Bulletins