PECL Imagick: Arbitrary code execution — GLSA 202003-38

A vulnerability in Imagick PHP extension might allow an attacker to execute arbitrary code.

Affected packages

dev-php/pecl-imagick on all architectures
Affected versions < 3.4.4
Unaffected versions >= 3.4.4

Background

Imagick is a PHP extension to create and modify images using the ImageMagick library.

Description

An out-of-bounds write vulnerability was discovered in the Imagick PHP extension.

Impact

A remote attacker, able to upload specially crafted images which will get processed by Imagick, could possibly execute arbitrary code with the privileges of the process or cause a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All Imagick PHP extension users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-php/pecl-imagick-3.4.4"
 

References

Release date
March 19, 2020

Latest revision
March 19, 2020: 1

Severity
high

Exploitable
remote

Bugzilla entries