Stack-based buffer overflow in PHP - CVE-2015-5590

 

Stack-based buffer overflow in PHP - CVE-2015-5590

Published: January 19, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32406
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2015-5590
CWE-ID: CWE-121
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 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

PHP
Amazon Linux AMI
Fedora
php (Alpine package)
php

How to mitigate CVE-2015-5590

The vendor has issued the following versions to address this vulnerability: 5.4.43, 5.5.27, 5.6.11.

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