#VU16916 Out-of-bounds write in PHP - CVE-2019-6977

 

#VU16916 Out-of-bounds write in PHP - CVE-2019-6977

Published: January 10, 2019 / Updated: June 17, 2021


Vulnerability identifier: #VU16916
Vulnerability risk: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2019-6977
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vulnerable software:
PHP
Software vendor:
PHP Group

Description

The vulnerability allows a remote attacker to execute arbitrary on the target system.

The weakness exists due to out-of-bounds write in imagecolormatch. A remote attacker can write up to 1200 bytes over the boundaries of a buffer allocated in the imagecolormatch function, which then calls gdImageColorMatch() and execute arbitrary code with elevated privileges.

Remediation

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

External links