CVE-2019-19949: Buffer Overflow
ImageMagick is vulnerable to a heap-based buffer overflow, caused by a flaw in the WritePNGImage function in coders/png.c. By persuading a victim to open a specially-crafted file, a remote attacker could overflow a buffer and execute arbitrary code on the system.
Other sources
In ImageMagick 7.0.8-43 Q16, there is a heap-based buffer over-read in the function WritePNGImage of coders/png.c, related to Magickpngwriterawprofile and LocaleNCompare.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/ImageMagick 6.9.10to a version that resolves this vulnerability.Fixed in 43 - Upgrade
Upgrade
redhat/ImageMagick 7.0.8to a version that resolves this vulnerability.Fixed in 43 - Upgrade
Upgrade
debian/imagemagickto a version that resolves this vulnerability.Fixed in 8:6.9.11.60+dfsg-1.3+deb11u4Fixed in 8:6.9.11.60+dfsg-1.3+deb11u9Fixed in 8:6.9.11.60+dfsg-1.6+deb12u5Fixed in 8:6.9.11.60+dfsg-1.6+deb12u6Fixed in 8:7.1.1.43+dfsg1-1+deb13u4Fixed in 8:7.1.1.43+dfsg1-1+deb13u5Fixed in 8:7.1.2.13+dfsg1-1 - Upgrade
Upgrade
alpine/imagemagickto a version that resolves this vulnerability.Fixed in 7.0.8.44-r0 - Upgrade
Upgrade
alpine/imagemagick6to a version that resolves this vulnerability.Fixed in 6.9.10.43-r0
Event History
Frequently Asked Questions
What is the severity of CVE-2019-19949?
CVE-2019-19949 has a high severity score due to the potential for remote code execution via a heap-based buffer overflow.
How can I fix CVE-2019-19949?
To fix CVE-2019-19949, update ImageMagick to version 6.9.10-43 or 7.0.8-43 or later.
Which software is affected by CVE-2019-19949?
CVE-2019-19949 affects ImageMagick versions up to 6.9.10-43 and 7.0.8-43, as well as specific versions of IBM Data Risk Manager.
What type of vulnerability is CVE-2019-19949?
CVE-2019-19949 is a heap-based buffer overflow vulnerability affecting the WritePNGImage function.
Can CVE-2019-19949 be exploited remotely?
Yes, CVE-2019-19949 can be exploited remotely by tricking a victim into opening a specially-crafted PNG file.