CVE-2026-61857: ImageMagick before 7.1.2-26 Heap Use-After-Free via XMP
ImageMagick before 7.1.2-26 contains a heap use-after-free vulnerability caused by missing null check when parsing XMP profiles. Attackers can craft malicious image files with specially crafted XMP data to trigger the vulnerability and cause application crashes.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/imagemagickto a version that resolves this vulnerability.Fixed in 8:6.9.11.60+dfsg-1.6+deb12u13 - Upgrade
Upgrade
debian/imagemagickto a version that resolves this vulnerability.Fixed in 8:7.1.1.43+dfsg1-1+deb13u12 - Upgrade
Upgrade
debian/imagemagickto a version that resolves this vulnerability.Fixed in 8:7.1.2.26+dfsg1-1 - Upgrade
Upgrade
debian/imagemagickto a version that resolves this vulnerability.Fixed in 8:6.9.11.60+dfsg-1.6+deb12u15Fixed in 8:7.1.1.43+dfsg1-1+deb13u12Fixed in 8:7.1.1.43+dfsg1-1+deb13u13Fixed in 8:7.1.2.34+dfsg1-1 - Upgrade
Upgrade
alpine/glibto a version that resolves this vulnerability.Fixed in 2.86.5-r0 - Upgrade
Upgrade
alpine/imagemagickto a version that resolves this vulnerability.Fixed in 7.1.2.29-r0 - Upgrade
Upgrade
ImageMagickto a version that resolves this vulnerability.Fixed in 7.1.2-26
Event History
Frequently Asked Questions
What is the severity of CVE-2026-61857?
The severity of CVE-2026-61857 is rated low, with a score of 3.7.
How do I fix CVE-2026-61857?
To fix CVE-2026-61857, upgrade ImageMagick to version 7.1.2-26 or later.
What type of vulnerability is CVE-2026-61857?
CVE-2026-61857 is classified as a heap use-after-free vulnerability.
What attacks can exploit CVE-2026-61857?
Attackers can exploit CVE-2026-61857 by crafting malicious image files with specially formatted XMP data.
What versions of ImageMagick are affected by CVE-2026-61857?
ImageMagick versions prior to 7.1.2-26 are affected by CVE-2026-61857.