Stack-based buffer overflow in PHP - CVE-2015-5590
Published: January 19, 2016 / Updated: July 28, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the phar_fix_filepath function in ext/phar/phar.c when processing a large length value, as demonstrated by mishandling of an e-mail attachment by the imap PHP extension. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Amazon Linux AMI
Fedora
php (Alpine package)
php
How to mitigate CVE-2015-5590
php (Alpine package) - update to 5.5.27-r0
php - update to 5.6.11-1.fc21