Code injection in ImageMagick MAGICK, XBM, XPM and UIL encoders
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-2pc3-3339-3qc9. Fix status from GitHub. Impact type from CWE-94.
Summary
ImageMagick versions before 7.1.2-35 and before 6.9.13-60 are affected. When encoding a MAGICK image, the encoder does not properly escape or control the generated output, so a local user with low privileges who can write to the directory and control the filename can inject an additional header or code into the generated file (CWE-94). Exploitation requires user interaction.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
When encoding a MAGICK image a user that has access to the directory where this takes place and control over the filename and directory could inject an additional header or code in the generated code.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ImageMagick (c/c++) | < 7.1.2-35 | 7.1.2-35 | Patch available | GHSA-2pc3-3339-3qc9 |
| — | ImageMagick (c/c++) | < 6.9.13-60 | 6.9.13-60 | Patch available | GHSA-2pc3-3339-3qc9 |
- ImageMagick (c/c++) Vendor— Affected < 7.1.2-35 Fixed in 7.1.2-35 Patch available GHSA-2pc3-3339-3qc9
- ImageMagick (c/c++) Vendor— Affected < 6.9.13-60 Fixed in 6.9.13-60 Patch available GHSA-2pc3-3339-3qc9
Remediation
Update the ImageMagick 7 branch to 7.1.2-35 and the ImageMagick 6 branch to 6.9.13-60.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-2pc3-3339-3qc9 ImageMagick (c/c++) Fixed in 7.1.2-35 Advisory →
- Fix · GHSA-2pc3-3339-3qc9 ImageMagick (c/c++) Fixed in 6.9.13-60 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-2pc3-3339-3qc9
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences