Heap-based buffer overflow in PHP - CVE-2018-20783
Published: December 7, 2018 / Updated: December 7, 2018
Vulnerability identifier: #VU16317
CSH Severity: Low
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-20783
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists due to heap-based buffer overflow while fuzzing with AFL using an ASAN instrumented PHP. A remote attacker can disable the ZEND allocator, use ASAN (or valgrind/etc?) with a crafted phar as input, trigger memory corruption and cause the service to crash.
The weakness exists due to heap-based buffer overflow while fuzzing with AFL using an ASAN instrumented PHP. A remote attacker can disable the ZEND allocator, use ASAN (or valgrind/etc?) with a crafted phar as input, trigger memory corruption and cause the service to crash.
Affected software
PHP
Debian Linux
php5 (Debian package)
php7.0 (Debian package)
Debian Linux
php5 (Debian package)
php7.0 (Debian package)
How to mitigate CVE-2018-20783
The vulnerability has been addressed in the versions 5.6.39, 7.0.33, 7.1.25, 7.2.13, 7.3.0.
PHP - addressed in versions 5.6.39, 7.0.33, 7.1.25, 7.2.13, 7.3.0
php5 (Debian package) - update to 5.6.39+dfsg-0+deb8u1
php7.0 (Debian package) - update to 7.0.33-0+deb9u1
php5 (Debian package) - update to 5.6.39+dfsg-0+deb8u1
php7.0 (Debian package) - update to 7.0.33-0+deb9u1