CVE-2019-19948: Buffer Overflow
ImageMagick is vulnerable to a heap-based buffer overflow, caused by a flaw in the WriteSGIImage function in coders/sgi.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 overflow in the function WriteSGIImage of coders/sgi.c.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/ImageMagick 7.0.8to a version that resolves this vulnerability.Fixed in 43 - Upgrade
Upgrade
redhat/ImageMagick 6.9.10to 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-19948?
CVE-2019-19948 is classified as a critical vulnerability due to the potential for remote code execution.
How do I fix CVE-2019-19948?
To fix CVE-2019-19948, upgrade to the patched versions of ImageMagick or apply the appropriate updates from your distribution.
What systems are affected by CVE-2019-19948?
CVE-2019-19948 affects multiple versions of ImageMagick, including versions up to 7.0.8-43.
Can CVE-2019-19948 allow an attacker to execute arbitrary code?
Yes, exploiting CVE-2019-19948 can allow a remote attacker to execute arbitrary code on a vulnerable system.
Is there a proof of concept for CVE-2019-19948?
Yes, proof of concept examples related to CVE-2019-19948 can be found on various security-focused platforms.