CVE-2019-11037
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 (CVSS)
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.97%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 81.0% of all scored CVEs. Scores of 26 Nov 2026.
Weakness
- CWE-787 Out-of-bounds Write
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| PHP Imagick extension |
affected from 3.4.4, before 3.4.4 affected from 3.3.0, before 3.3.0*
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-11037 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-11037RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-11037Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-11037
trivy image --scanners vuln IMAGE | grep CVE-2019-11037
PatchBrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Advisories
- FEDORA-2019-488d0f9a4b lists.fedoraproject.org · vendor advisory
- FEDORA-2019-9448fa46f3 lists.fedoraproject.org · vendor advisory
- FEDORA-2019-5dc1f4100e lists.fedoraproject.org · vendor advisory
- DSA-4576 debian.org · vendor advisory
- openSUSE-SU-2020:0014 lists.opensuse.org · vendor advisory
- GLSA-202003-38 security.gentoo.org · vendor advisory
- USN-4586-1 usn.ubuntu.com · vendor advisory
Other references
- https://bugs.php.net/bug.php?id=77791 bugs.php.net
- 108292 securityfocus.com · vdb entry
- https://github.com/CVEProject/cvelist/pull/1964 github.com
- 20191126 [SECURITY] [DSA 4576-1] php-imagick security update seclists.org · mailing list
Source: the record CVE-2019-11037 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.