Buffer overflow in PHP - CVE-2019-9023

 

Buffer overflow in PHP - CVE-2019-9023

Published: January 10, 2019 / Updated: January 21, 2019


Vulnerability identifier: #VU16909
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-2019-9023
CWE-ID: CWE-120
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 buffer overflow in fetch_token when using enclen on an incomplete multibyte character. A remote attacker 
can make a pointer return after the end of the buffer and cause the service to crash.

Affected software

PHP
Ubuntu
php5-xmlrpc (Ubuntu package)
php5-fpm (Ubuntu package)
libapache2-mod-php5 (Ubuntu package)
php5-cgi (Ubuntu package)
php5-cli (Ubuntu package)
php7.0-fpm (Ubuntu package)
php7.0-cgi (Ubuntu package)
libapache2-mod-php7.0 (Ubuntu package)
php7.0-cli (Ubuntu package)
php7.0-xmlrpc (Ubuntu package)
php7.0-mbstring (Ubuntu package)

How to mitigate CVE-2019-9023

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

PHP - addressed in versions 5.6.40, 7.1.26, 7.2.14, 7.3.1
php5-xmlrpc (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.33, 5.5.9+dfsg-1ubuntu4.27
php5-fpm (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.33, 5.5.9+dfsg-1ubuntu4.27
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.33, 5.5.9+dfsg-1ubuntu4.27
php5-cgi (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.33, 5.5.9+dfsg-1ubuntu4.27
php5-cli (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.33, 5.5.9+dfsg-1ubuntu4.27
php7.0-fpm (Ubuntu package) - update to 7.0.33-0ubuntu0.16.04.2
php7.0-cgi (Ubuntu package) - update to 7.0.33-0ubuntu0.16.04.2
libapache2-mod-php7.0 (Ubuntu package) - update to 7.0.33-0ubuntu0.16.04.2
php7.0-cli (Ubuntu package) - update to 7.0.33-0ubuntu0.16.04.2
php7.0-xmlrpc (Ubuntu package) - update to 7.0.33-0ubuntu0.16.04.2
php7.0-mbstring (Ubuntu package) - update to 7.0.33-0ubuntu0.16.04.2

External References

Related Security Bulletins