Vulnerability identifier: #VU32406
Vulnerability risk: Medium
CVSSv3.1: 6.4 [AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:U/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-121
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
PHP
Universal components / Libraries /
Scripting languages
Vendor: PHP Group
Description
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.
Mitigation
The vendor has issued the following versions to address this vulnerability: 5.4.43, 5.5.27, 5.6.11.
Vulnerable software versions
PHP: 5.4.0 - 5.4.42, 5.5.0 - 5.5.26, 5.6.0 - 5.6.10
External links
http://git.php.net/?p=php-src.git;a=commit;h=6dedeb40db13971af45276f80b5375030aa7e76f
http://openwall.com/lists/oss-security/2015/07/18/1
http://www.debian.org/security/2015/dsa-3344
http://www.php.net/ChangeLog-5.php
http://www.securityfocus.com/bid/75970
http://bugs.php.net/bug.php?id=69923
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.