Out-of-bounds write in Imagick PHP extension - CVE-2019-11037

 

Out-of-bounds write in Imagick PHP extension - CVE-2019-11037

Published: November 26, 2019


Vulnerability identifier: #VU23005
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-11037
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input within the ImagickKernel::fromMatrix() function in PHP imagick extension. A remote attacker can create a specially crafted file, pass it to the application, trigger out-of-bounds write and execute arbitrary code on the target system.


Affected software

Imagick PHP extension
Gentoo Linux
Debian Linux
SUSE Linux
Opensuse
Ubuntu
Fedora
SUSE Package Hub for SUSE Linux Enterprise
php7-pecl-imagick (Alpine package)
php-imagick (Debian package)
php-imagick (Ubuntu package)
php-pecl-imagick

How to mitigate CVE-2019-11037

Install updates from vendor's website.

Imagick PHP extension - update to 3.4.4
php7-pecl-imagick (Alpine package) - update to 3.4.4-r3
php-imagick (Debian package) - update to 3.4.3~rc2-2+deb9u1
php-imagick (Ubuntu package) - addressed in versions 3.4.0~rc6-1ubuntu3+esm1, 3.4.3~rc2-2ubuntu4.1
php-pecl-imagick - addressed in versions 3.4.4-1.fc28, 3.4.4-1.fc29, 3.4.4-1.fc30

External References

Related Security Bulletins