{"id":"CVE-2019-11037","aliases":["DEBIAN-CVE-2019-11037","DSA-4576-1","EUVD-2019-2745","GHSA-c46f-p363-f93x","UBUNTU-CVE-2019-11037","USN-4586-1","USN-4586-2","openSUSE-SU-2020:0014-1"],"status":"published","title":"Out of bounds memory write in PHP Imagick extension","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.","severity":{"version":"3.0","score":4.9,"vector":"CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.01972,"percentile":0.80558,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2019-05-03T19:28:15Z","modified":"2026-10-25T23:30:04Z","fixes":[{"ecosystem":"Debian:12","package":"php-imagick","fixed_in":["3.4.3-4.1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"php-imagick","fixed_in":["3.4.3-4.1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"php-imagick","fixed_in":["3.4.3-4.1"],"sources":["osv"]},{"ecosystem":"Debian:9","package":"php-imagick","fixed_in":["3.4.3~rc2-2+deb9u1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"php-imagick","fixed_in":["3.4.0~rc6-1ubuntu3+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"php-imagick","fixed_in":["3.4.3~rc2-2ubuntu4.1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 12","package":"php7-imagick","fixed_in":["3.4.4-bp151.2.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP1","package":"php7-imagick","fixed_in":["3.4.4-bp151.2.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.1","package":"php7-imagick","fixed_in":["3.4.4-bp151.2.3.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"php-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.3-4.1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"php-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.3-4.1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"php-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.3-4.1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"php-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.3~rc2-2+deb9u1"}]}],"versions":["3.4.3~rc2-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"php-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.0~rc6-1ubuntu3+esm1"}]}],"versions":["3.3.0~rc2-1","3.4.0~rc6-1ubuntu2","3.4.0~rc6-1ubuntu3"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"php-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.3~rc2-2ubuntu4.1"}]}],"versions":["3.4.3~rc2-2ubuntu3","3.4.3~rc2-2ubuntu4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"php-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.3~rc2-2ubuntu4.1"}]}],"versions":["3.4.3~rc2-2ubuntu3","3.4.3~rc2-2ubuntu4"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"php-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.0~rc6-1ubuntu3+esm1"}]}],"versions":["3.3.0~rc2-1","3.4.0~rc6-1ubuntu2","3.4.0~rc6-1ubuntu3"]},{"source":"osv","ecosystem":"SUSE:Package Hub 12","package":"php7-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.4-bp151.2.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP1","package":"php7-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.4-bp151.2.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.1","package":"php7-imagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.4-bp151.2.3.1"}]}]}],"products":[{"vendor":"php","product":"imagick"},{"vendor":"php group","product":"php imagick extension"}],"references":[{"url":"https://bugs.php.net/bug.php?id=77791","tags":["x_refsource_MISC","x_transferred","Mailing List","Vendor Advisory","advisory","report"]},{"url":"http://www.securityfocus.com/bid/108292","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://github.com/CVEProject/cvelist/pull/1964","tags":["x_refsource_MISC","x_transferred","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7MQ7WJA25YF2R2LRALK4QEYWUHHJPSUD/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BU66V7QJKD32RXLY5J7Z5NZH4V3VV524/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FME5ZG7DDYWUPPHTTAFJB5OFFCPXYHPS/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://www.debian.org/security/2019/dsa-4576","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"https://seclists.org/bugtraq/2019/Nov/39","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00016.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/202003-38","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory"]},{"url":"https://usn.ubuntu.com/4586-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-11037"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7MQ7WJA25YF2R2LRALK4QEYWUHHJPSUD"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BU66V7QJKD32RXLY5J7Z5NZH4V3VV524"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FME5ZG7DDYWUPPHTTAFJB5OFFCPXYHPS"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7MQ7WJA25YF2R2LRALK4QEYWUHHJPSUD"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BU66V7QJKD32RXLY5J7Z5NZH4V3VV524"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FME5ZG7DDYWUPPHTTAFJB5OFFCPXYHPS"},{"url":"https://usn.ubuntu.com/4586-1"},{"url":"https://github.com/advisories/GHSA-c46f-p363-f93x"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-11037","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-11037","tags":["report"]},{"url":"https://github.com/mkoppanen/imagick/commits/bugfix_77791","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4586-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4586-2","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-11037","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/KGV7VQ6VPH5S7V7PYMCMEEKUWPZOL27Y/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1135418","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2019-11037","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2019-11037","title":"Out of bounds memory write in PHP Imagick extension","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.","status":"published","published":"2019-05-03T19:28:15.611Z","modified":"2024-09-16T17:43:40.554Z","cvss":[{"version":"3.0","score":4.9,"vector":"CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:20:26.416173Z"}],"euvd":[{"id":"EUVD-2019-2745","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.","status":"published","published":"2019-05-03T19:28:15Z","modified":"2024-09-16T17:43:40Z","cvss":[{"version":"3.0","score":4.9,"vector":"CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-03T00:55:39.247967Z"}],"ghsa":[{"id":"GHSA-c46f-p363-f93x","title":"In PHP imagick extension in versions between 3.3.0 and 3.4.4, writing to an array of values in...","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.","status":"published","published":"2022-05-24T16:45:06Z","modified":"2024-04-04T00:27:08Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:55:50.017793Z"}],"nvd":[{"id":"CVE-2019-11037","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.","status":"published","published":"2019-05-03T20:29:00.42Z","modified":"2026-06-17T02:12:10.61Z","cvss":[{"version":"3.0","score":4.9,"vector":"CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:05:12.471695Z"}],"osv":[{"id":"CVE-2019-11037","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.","status":"published","published":"2019-05-03T20:29:00.42Z","modified":"2026-03-15T22:29:04.668145Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:10.383287Z"},{"id":"DEBIAN-CVE-2019-11037","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.","status":"published","published":"2019-05-03T20:29:00.42Z","modified":"2026-09-21T07:01:58.918962089Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:31.170944Z"},{"id":"UBUNTU-CVE-2019-11037","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.","status":"published","published":"2019-05-03T20:29:00Z","modified":"2026-10-25T23:30:04.172659633Z","cvss":[{"version":"3.0","score":4.9,"vector":"CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:19.202697Z"},{"id":"DSA-4576-1","title":"php-imagick - security update","status":"published","published":"2019-11-25T00:00:00Z","modified":"2026-03-09T02:10:44.84158Z","updated_at":"2026-11-02T15:46:17.19998Z"},{"id":"openSUSE-SU-2020:0014-1","title":"Security update for php7-imagick","description":"This update for php7-imagick fixes the following issues:\n\nUpgrade to version 3.4.4:\n\nAdded:\n\n  * function Imagick::optimizeImageTransparency()\n  * METRIC_STRUCTURAL_SIMILARITY_ERROR\n  * METRIC_STRUCTURAL_DISSIMILARITY_ERROR\n  * COMPRESSION_ZSTD - https://github.com/facebook/zstd\n  * COMPRESSION_WEBP\n  * CHANNEL_COMPOSITE_MASK\n  * FILTER_CUBIC_SPLINE - 'Define the lobes with the -define \n    filter:lobes={2,3,4}\n    (reference https://imagemagick.org/discourse-server/viewtopic.php?f=2\u0026t=32506).'\n  * Imagick now explicitly conflicts with the Gmagick extension.\n\nFixes:\n\n  * Correct version check to make RemoveAlphaChannel and FlattenAlphaChannel \n    be available when using Imagick with ImageMagick version 6.7.8-x\n  * Bug 77128 - Imagick::setImageInterpolateMethod() not available on Windows\n  * Prevent memory leak when ImagickPixel::__construct called after object instantiation.\n  * Prevent segfault when ImagickPixel internal constructor not called.\n  * Imagick::setResourceLimit support for values larger than 2GB (2^31) on 32bit platforms.\n  * Corrected memory overwrite in Imagick::colorDecisionListImage()\n  * Bug 77791 - ImagickKernel::fromMatrix() out of bounds write.\n    Fixes CVE-2019-11037, boo#1135418\n\nThe following functions have been deprecated:\n\n  * ImagickDraw, matte\n  * Imagick::averageimages\n  * Imagick::colorfloodfillimage\n  * Imagick::filter\n  * Imagick::flattenimages\n  * Imagick::getimageattribute\n  * Imagick::getimagechannelextrema\n  * Imagick::getimageclipmask\n  * Imagick::getimageextrema\n  * Imagick::getimageindex\n  * Imagick::getimagematte\n  * Imagick::getimagemattecolor\n  * Imagick::getimagesize\n  * Imagick::mapimage\n  * Imagick::mattefloodfillimage\n  * Imagick::medianfilterimage\n  * Imagick::mosaicimages\n  * Imagick::orderedposterizeimage\n  * Imagick::paintfloodfillimage\n  * Imagick::paintopaqueimage\n  * Imagick::painttransparentimage\n  * Imagick::radialblurimage\n  * Imagick::recolorimage\n  * Imagick::reducenoiseimage\n  * Imagick::roundcornersimage\n  * Imagick::roundcorners\n  * Imagick::setimageattribute\n  * Imagick::setimagebias\n  * Imagick::setimageclipmask\n  * Imagick::setimageindex\n  * Imagick::setimagemattecolor\n  * Imagick::setimagebiasquantum\n  * Imagick::setimageopacity\n  * Imagick::transformimage\n\n","status":"published","published":"2020-01-13T15:17:00Z","modified":"2026-02-04T02:52:38.607302Z","updated_at":"2026-11-02T16:58:31.152112Z"},{"id":"USN-4586-1","title":"php-imagick vulnerability","description":"It was discovered that PHP ImageMagick extension didn't check the address used\nby an array. An attacker could use this issue to cause PHP ImageMagick to\ncrash, resulting in a denial of service.\n","status":"published","published":"2020-10-20T13:16:29Z","modified":"2026-04-27T15:45:01.975783Z","updated_at":"2026-11-02T16:58:15.159055Z"},{"id":"USN-4586-2","title":"php-imagick vulnerability","description":"USN-4586-1 fixed vulnerabilities in PHP ImageMagick. This update\nprovides the corresponding update for Ubuntu 16.04 ESM.\n\nOriginal advisory details:\n\n It was discovered that PHP ImageMagick extension didn't check the address used\n by an array. An attacker could use this issue to cause PHP ImageMagick to\n crash, resulting in a denial of service.\n","status":"published","published":"2022-01-24T20:54:51Z","modified":"2026-06-25T13:30:19.788456285Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
