CVE-2019-11037
Out of bounds memory write in PHP Imagick extension
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.9
Out of bounds memory write in PHP Imagick extension
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.
- Record
CVE-2019-11037- CVSS 3.0
- 4.9 Medium
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-787
- Updated
- 2026-11-02
EUVDEUVD-2019-2745
4.9
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.
- Record
EUVD-2019-2745- CVSS 3.0
- 4.9 Medium
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-c46f-p363-f93x
9.8
In PHP imagick extension in versions between 3.3.0 and 3.4.4, writing to an array of values in...
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.
- Record
GHSA-c46f-p363-f93x- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
NVD
4.9
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.
- Record
CVE-2019-11037- CVSS 3.0
- 4.9 Medium
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2019-11037- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-11037
9.8
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.
- Record
DEBIAN-CVE-2019-11037- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2019-11037
4.9
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.
- Record
UBUNTU-CVE-2019-11037- CVSS 3.0
- 4.9 Medium
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2020:0014-1 No score
Security update for php7-imagick
This update for php7-imagick fixes the following issues:
Upgrade to version 3.4.4:
Added:
- function Imagick::optimizeImageTransparency()
- METRIC_STRUCTURAL_SIMILARITY_ERROR
- METRIC_STRUCTURAL_DISSIMILARITY_ERROR
- COMPRESSION_ZSTD - https://github.com/facebook/zstd
- COMPRESSION_WEBP
- CHANNEL_COMPOSITE_MASK
- FILTER_CUBIC_SPLINE - 'Define the lobes with the -define filter:lobes={2,3,4} (reference https://imagemagick.org/discourse-server/viewtopic.php?f=2&t=32506).'
- Imagick now explicitly conflicts with the Gmagick extension.
Fixes:
- Correct version check to make RemoveAlphaChannel and FlattenAlphaChannel be available when using Imagick with ImageMagick version 6.7.8-x
- Bug 77128 - Imagick::setImageInterpolateMethod() not available on Windows
- Prevent memory leak when ImagickPixel::__construct called after object instantiation.
- Prevent segfault when ImagickPixel internal constructor not called.
- Imagick::setResourceLimit support for values larger than 2GB (2^31) on 32bit platforms.
- Corrected memory overwrite in Imagick::colorDecisionListImage()
- Bug 77791 - ImagickKernel::fromMatrix() out of bounds write. Fixes CVE-2019-11037, boo#1135418
The following functions have been deprecated:
- ImagickDraw, matte
- Imagick::averageimages
- Imagick::colorfloodfillimage
- Imagick::filter
- Imagick::flattenimages
- Imagick::getimageattribute
- Imagick::getimagechannelextrema
- Imagick::getimageclipmask
- Imagick::getimageextrema
- Imagick::getimageindex
- Imagick::getimagematte
- Imagick::getimagemattecolor
- Imagick::getimagesize
- Imagick::mapimage
- Imagick::mattefloodfillimage
- Imagick::medianfilterimage
- Imagick::mosaicimages
- Imagick::orderedposterizeimage
- Imagick::paintfloodfillimage
- Imagick::paintopaqueimage
- Imagick::painttransparentimage
- Imagick::radialblurimage
- Imagick::recolorimage
- Imagick::reducenoiseimage
- Imagick::roundcornersimage
- Imagick::roundcorners
- Imagick::setimageattribute
- Imagick::setimagebias
- Imagick::setimageclipmask
- Imagick::setimageindex
- Imagick::setimagemattecolor
- Imagick::setimagebiasquantum
- Imagick::setimageopacity
- Imagick::transformimage
- Record
openSUSE-SU-2020:0014-1- Updated
- 2026-11-02
OSVUSN-4586-1 No score
php-imagick vulnerability
It was discovered that PHP ImageMagick extension didn't check the address used by an array. An attacker could use this issue to cause PHP ImageMagick to crash, resulting in a denial of service.
- Record
USN-4586-1- Updated
- 2026-11-02
OSVUSN-4586-2 No score
php-imagick vulnerability
USN-4586-1 fixed vulnerabilities in PHP ImageMagick. This update provides the corresponding update for Ubuntu 16.04 ESM.
Original advisory details:
It was discovered that PHP ImageMagick extension didn't check the address used by an array. An attacker could use this issue to cause PHP ImageMagick to crash, resulting in a denial of service.
- Record
USN-4586-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php-imagickDebian:12 |
before 3.4.3-4.1 | 3.4.3-4.1 |
php-imagickDebian:13 |
before 3.4.3-4.1 | 3.4.3-4.1 |
php-imagickDebian:14 |
before 3.4.3-4.1 | 3.4.3-4.1 |
php-imagickDebian:9 |
before 3.4.3~rc2-2+deb9u1, plus listed versions 3.4.3~rc2-2 |
3.4.3~rc2-2+deb9u1 |
php-imagickUbuntu:Pro:16.04:LTS |
before 3.4.0~rc6-1ubuntu3+esm1, plus listed versions 3.3.0~rc2-13.4.0~rc6-1ubuntu23.4.0~rc6-1ubuntu3 |
3.4.0~rc6-1ubuntu3+esm1 |
php-imagickUbuntu:18.04:LTS |
before 3.4.3~rc2-2ubuntu4.1, plus listed versions 3.4.3~rc2-2ubuntu33.4.3~rc2-2ubuntu4 |
3.4.3~rc2-2ubuntu4.1 |
php7-imagickSUSE:Package Hub 12 |
before 3.4.4-bp151.2.3.1 | 3.4.4-bp151.2.3.1 |
php7-imagickSUSE:Package Hub 15 SP1 |
before 3.4.4-bp151.2.3.1 | 3.4.4-bp151.2.3.1 |
php7-imagickopenSUSE:Leap 15.1 |
before 3.4.4-bp151.2.3.1 | 3.4.4-bp151.2.3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-11037 is a medium vulnerability (CVSS 4.9) in Php Imagick, published May 3, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.97%, the 80th percentile. Fixed in php-imagick 3.4.3-4.1.
References
bugs.php.net/bug.php?id=77791
securityfocus.com/bid/108292
github.com/CVEProject/cvelist/pull/1964
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7MQ7WJA25YF2R2LRALK4QEYWUHHJPSUD
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BU66V7QJKD32RXLY5J7Z5NZH4V3VV524
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FME5ZG7DDYWUPPHTTAFJB5OFFCPXYHPS
Show 19 moreShow less
debian.org/security/2019/dsa-4576
seclists.org/bugtraq/2019/Nov/39
lists.opensuse.org/opensuse-security-announce/2020-01/msg00016.html
security.gentoo.org/glsa/202003-38
usn.ubuntu.com/4586-1
nvd.nist.gov/vuln/detail/CVE-2019-11037
lists.fedoraproject.org/archives/list/[email protected]/message/7MQ7WJA25YF2R2LRALK4QEYWUHHJPSUD
lists.fedoraproject.org/archives/list/[email protected]/message/BU66V7QJKD32RXLY5J7Z5NZH4V3VV524
lists.fedoraproject.org/archives/list/[email protected]/message/FME5ZG7DDYWUPPHTTAFJB5OFFCPXYHPS
github.com/advisories/GHSA-c46f-p363-f93x
security-tracker.debian.org/tracker/CVE-2019-11037
ubuntu.com/security/CVE-2019-11037
github.com/mkoppanen/imagick/commits/bugfix_77791
ubuntu.com/security/notices/USN-4586-1
ubuntu.com/security/notices/USN-4586-2
cve.org/CVERecord?id=CVE-2019-11037
lists.opensuse.org/archives/list/[email protected]/thread/KGV7VQ6VPH5S7V7PYMCMEEKUWPZOL27Y
bugzilla.suse.com/1135418
suse.com/security/cve/CVE-2019-11037