Description
In PHP imagick extension in versions between 3.3.0 and 3.4.4, writing to an array of values in ImagickKernel::fromMatrix() function did not check that the address will be within the allocated array. This could lead to out of bounds write to memory if the function is called with the data controlled by untrusted party.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHP Group | PHP Imagick extension | 3.4.4 – < 3.4.4, 3.3.0 – < 3.3.0* | 3.4.4 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | php-imagick | 3.4.3-4.1 | — |
| Debian 13 | php-imagick | 3.4.3-4.1 | — |
| Debian 12 | php-imagick | 3.4.3-4.1 | — |
| Debian 9 | php-imagick | 3.4.3~rc2-2+deb9u1 | DSA-4576-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | php-imagick | 3.4.3~rc2-2ubuntu4.1 | USN-4586-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | php-imagick | 3.4.0~rc6-1ubuntu3+esm1 | USN-4586-2 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | php7-imagick | 3.4.4-bp151.2.3.1 | openSUSE-SU-2020:0014-1 |
| SUSE Package Hub 12 | php7-imagick | 3.4.4-bp151.2.3.1 | openSUSE-SU-2020:0014-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.1 | php7-imagick | 3.4.4-bp151.2.3.1 | openSUSE-SU-2020:0014-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | php7-pecl-imagick | 3.4.4-r0 | — |
| Alpine v3.14 | php7-pecl-imagick | 3.4.4-r0 | — |
| Alpine v3.13 | php7-pecl-imagick | 3.4.4-r0 | — |
| Alpine v3.12 | php7-pecl-imagick | 3.4.4-r0 | — |
| Alpine v3.11 | php7-pecl-imagick | 3.4.4-r0 | — |
Advisories 4
- USN-4586-2 php-imagick vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-4586-1 php-imagick vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-4576-1 php-imagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2020:0014-1 Security update for php7-imagick SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://bugs.php.net/bug.php?id=77791
- 108292 vdb-entry
- https://github.com/CVEProject/cvelist/pull/1964
- FEDORA-2019-488d0f9a4b vendor-advisory
- FEDORA-2019-9448fa46f3 vendor-advisory
- FEDORA-2019-5dc1f4100e vendor-advisory
- DSA-4576 vendor-advisory
- 20191126 [SECURITY] [DSA 4576-1] php-imagick security update mailing-list
- openSUSE-SU-2020:0014 vendor-advisory
- GLSA-202003-38 vendor-advisory
- USN-4586-1 vendor-advisory