CVE-2026-130663: ImageMagick before 7.1.2-35 Code Injection via MAGICK, XBM, XPM and UIL Encoders
ImageMagick before 7.1.2-35 contains a code injection vulnerability in the MAGICK, XBM, XPM and UIL encoders that allows local attackers to inject content via crafted filenames. Attackers with access to the output directory and control over the filename can inject additional headers or code into the generated image source output.
Affected Software
Event History
Frequently Asked Questions
What access does an attacker need to exploit this issue?
The attacker needs local access, permission to write to the output directory, and control over the filename used for generated output. Exploitation also requires user interaction and has high attack complexity.
Which output formats are affected?
The affected encoders are MAGICK, XBM, XPM, and UIL. The issue occurs when crafted filenames cause additional headers or code to be injected into generated image source output.
Which versions need remediation?
ImageMagick versions before 7.1.2-35 are affected. Updating to 7.1.2-35 or later addresses the affected version range described here.
What can be done if updating is not immediately possible?
Do not allow untrusted users or processes to control output filenames or write to image output directories. Avoid generating output through the MAGICK, XBM, XPM, and UIL encoders when filenames may be attacker-controlled.