Red Hat VEX
RHVEX-CVE-2026-25797
ImageMagick: ImageMagick: Arbitrary code execution via crafted PostScript files
Details
A flaw was found in ImageMagick, a software used for editing and manipulating digital images. This vulnerability allows an attacker to inject malicious code into PostScript files due to improper input sanitization in the PostScript coders. When a specially crafted file is processed by a printer or viewer, this injected code can be executed, potentially leading to arbitrary code execution. A similar issue exists in the HTML encoder, where improper escaping of strings could allow for arbitrary HTML injection.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | ImageMagick | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-c++ | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-c++-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ImageMagick-perl | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-c++ | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-c++-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ImageMagick-perl | All versions, no fix (out of support scope) |