#VU16910 Heap-based buffer overflow in PHP


Published: 2019-01-10 | Updated: 2019-01-21

Vulnerability identifier: #VU16910

Vulnerability risk: Low

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

CVE-ID: N/A

CWE-ID: CWE-122

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 cause DoS condition on the target system.

The weakness exists in expand_case_fold_string the len field is calculated off enclen, and is then used in onig_node_new_str which is passed to xmemcpy later down the line due to incorrect length in expand_case_fold_string. A remote attacker can trigger heap-based buffer overflow and cause the service to crash.

Mitigation
The vulnerability has been fixed in the versions 5.6.40, 7.1.26, 7.2.14, 7.3.1.

Vulnerable software versions

PHP: 7.2.0 - 7.2.13, 7.3.0 - 7.3.0beta3, 7.1.0 - 7.1.25, 5.6.0 - 5.6.39, 5.5.6


External links
http://bugs.php.net/bug.php?id=77382


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. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability