Vulnerabilities / CVE-2019-11037

critical

CVE-2019-11037

php-imagick: out-of-bounds write to memory in ImagickKernel::fromMatrix() leading to possible crash and DoS

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Amazon (medium), Ubuntu (medium).

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 packages and fixed versions

SourcePackageFixed in
alpine 3.11php7-pecl-imagick3.4.4-r0
alpine 3.12php7-pecl-imagick3.4.4-r0
alpine 3.13php7-pecl-imagick3.4.4-r0
alpine 3.14php7-pecl-imagick3.4.4-r0
alpine 3.15php7-pecl-imagick3.4.4-r0
amazon linux 1php54-pecl-imagick, php54-pecl-imagick-debuginfo, php55-pecl-imagick and 12 more3.4.4-1.10.amzn1 and 5 more
debian 11php-imagick3.4.3-4.1
debian 12php-imagick3.4.3-4.1
debian 13php-imagick3.4.3-4.1
debian 14php-imagick3.4.3-4.1
debian 9php-imagick3.4.3~rc2-2+deb9u1
echophp-imagick3.4.3-4.1
Show all 29 entries from 15 sources
SourcePackageFixed in
alpine 3.11php7-pecl-imagick3.4.4-r0
alpine 3.12php7-pecl-imagick3.4.4-r0
alpine 3.13php7-pecl-imagick3.4.4-r0
alpine 3.14php7-pecl-imagick3.4.4-r0
alpine 3.15php7-pecl-imagick3.4.4-r0
amazon linux 1php54-pecl-imagick3.4.4-1.10.amzn1
amazon linux 1php54-pecl-imagick-debuginfo3.4.4-1.10.amzn1
amazon linux 1php55-pecl-imagick3.4.4-1.14.amzn1
amazon linux 1php55-pecl-imagick-debuginfo3.4.4-1.14.amzn1
amazon linux 1php56-pecl-imagick3.4.4-1.15.amzn1
amazon linux 1php56-pecl-imagick-debuginfo3.4.4-1.15.amzn1
amazon linux 1php70-pecl-imagick3.4.4-1.6.amzn1
amazon linux 1php70-pecl-imagick-debuginfo3.4.4-1.6.amzn1
amazon linux 1php70-pecl-imagick-devel3.4.4-1.6.amzn1
amazon linux 1php71-pecl-imagick3.4.4-1.7.amzn1
amazon linux 1php71-pecl-imagick-debuginfo3.4.4-1.7.amzn1
amazon linux 1php71-pecl-imagick-devel3.4.4-1.7.amzn1
amazon linux 1php72-pecl-imagick3.4.4-1.9.amzn1
amazon linux 1php72-pecl-imagick-debuginfo3.4.4-1.9.amzn1
amazon linux 1php72-pecl-imagick-devel3.4.4-1.9.amzn1
debian 11php-imagick3.4.3-4.1
debian 12php-imagick3.4.3-4.1
debian 13php-imagick3.4.3-4.1
debian 14php-imagick3.4.3-4.1
debian 9php-imagick3.4.3~rc2-2+deb9u1
echophp-imagick3.4.3-4.1
ubuntu 16.04-ESMphp-imagick3.4.0~rc6-1ubuntu3+esm1
ubuntu 18.04php-imagick3.4.3~rc2-2ubuntu4.1
ubuntu 18.04-ESMphp-imagick3.4.3~rc2-2ubuntu4.1

References

All 17 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.