#VU12907 Off-by-one error in PHP

Published: 2018-05-21

Vulnerability identifier: #VU12907

Vulnerability risk: High

CVSSv3.1: 8.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2016-10160


Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Universal components / Libraries / Scripting languages

Vendor: PHP Group

The vulnerability allows a remote attacker to cause DoS condition or execute arbitrary code on the target system.

The weakness exists in the phar_parse_pharfile function in ext/phar/phar.c due to off-by-one error. A remote attacker can submit a specially crafted PHAR archive with an alias mismatch and cause the service to crash or execute arbitrary code.

Successful exploitation of the vulnerability may result in system compromise.

Update to version 5.6.30 or 7.0.15.

Vulnerable software versions

PHP: 5.6.0 - 5.6.29, 7.0.0 - 7.0.14

External links

Q & A

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.

Latest bulletins with this vulnerability