Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109282 Overview
CVE-2026-109282 is a type confusion flaw in ImageMagick affecting versions before 6.9.13-57 and 7.x before 7.1.2-32. The vulnerability resides in the INFO, JSON, and YAML encoders, where an internal method receives a pointer of an unexpected type when writing an image in a compressed format. An attacker who can trigger such an image write causes the process to raise SIGABRT or SIGSEGV, resulting in denial of service. The flaw is tracked under CWE-843: Access of Resource Using Incompatible Type.
Critical Impact
Local attackers with the ability to drive ImageMagick to write INFO, JSON, or YAML output in a compressed format can crash the process, disrupting services that rely on ImageMagick for image processing.
Affected Products
- ImageMagick 6.x before 6.9.13-57
- ImageMagick 7.x before 7.1.2-32
- Applications and services embedding vulnerable ImageMagick builds
Discovery Timeline
- 2026-10-12 - CVE-2026-109282 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-109282
Vulnerability Analysis
ImageMagick's INFO, JSON, and YAML encoders write metadata output through a shared code path that assumes the output blob is backed by a stdio FILE* handle. When the caller requests a compressed output format, the blob is instead backed by a different internal structure. The encoder passes this incompatible pointer to a method expecting a FILE*, producing undefined behavior that terminates the process via SIGABRT or SIGSEGV.
The condition is a denial-of-service bug only: there is no indication of memory disclosure or code execution. Exploitation requires an attacker who can influence the output format selection or supply input that drives ImageMagick to invoke the vulnerable encoder path.
Root Cause
The root cause is unchecked type assumption in coders/info.c, coders/json.c, and the YAML encoder. The affected routines dereferenced the blob's file handle without verifying that the blob was actually backed by a stdio stream. The upstream fix introduces an explicit FILE *file acquisition and a clone of ImageInfo so the encoders can safely emit output when the original blob is not stdio-backed. See the ImageMagick 7 commit and ImageMagick 6 commit.
Attack Vector
The attack vector is local. An attacker needs the ability to invoke magick convert or an embedding application in a way that selects an INFO, JSON, or YAML encoder together with a compressed output format. Multi-tenant image conversion services and web backends that pass user-controlled format arguments to ImageMagick are the most exposed scenarios.
// Patch excerpt — coders/info.c (ImageMagick 7)
const char
*format;
+ FILE
+ *file;
+
+ ImageInfo
+ *clone_info;
+
MagickBooleanType
status;
Source: ImageMagick commit af7b850
// Patch excerpt — coders/json.c (ImageMagick 6)
static MagickBooleanType WriteJSONImage(const ImageInfo *image_info,
Image *image)
{
+ FILE
+ *file;
+
MagickBooleanType
status;
Source: ImageMagick6 commit a17cfd1
Detection Methods for CVE-2026-109282
Indicators of Compromise
- Repeated SIGABRT or SIGSEGV terminations of magick, convert, or host processes linking libMagickCore.
- Core dumps whose stack traces include WriteJSONImage, WriteINFOImage, or WriteYAMLImage frames.
- Image conversion jobs that request info:, json:, or yaml: output alongside a compression flag.
Detection Strategies
- Inventory running ImageMagick versions and flag any build older than 6.9.13-57 or 7.1.2-32.
- Review application logs for abnormal exit codes from ImageMagick worker processes servicing user-supplied formats.
- Correlate crash telemetry with the input filename and requested output format to isolate reproducible triggers.
Monitoring Recommendations
- Alert on process termination signals for image-processing workers and preserve core files for triage.
- Monitor queue retry rates in asynchronous image pipelines, since repeated crashes manifest as job failures.
- Track invocation frequency of info:, json:, and yaml: encoders in production conversion services.
How to Mitigate CVE-2026-109282
Immediate Actions Required
- Upgrade ImageMagick to 6.9.13-57 or 7.1.2-32 or later across all hosts and container images.
- Rebuild and redeploy any application that statically links or vendors ImageMagick libraries.
- Restrict user-controlled selection of output format strings in web-facing conversion endpoints.
Patch Information
The fix is published in the GitHub Security Advisory GHSA-8xmr-6q99-c4x8. Upstream patches are available in commit af7b850 for ImageMagick 7 and commit a17cfd1 for ImageMagick 6. Additional context is available in the VulnCheck advisory.
Workarounds
- Disable the INFO, JSON, and YAML coders in policy.xml where they are not required.
- Reject client requests that combine metadata-encoder formats with compression flags.
- Sandbox ImageMagick workers so that a crash does not degrade the surrounding service.
# /etc/ImageMagick-7/policy.xml — disable affected coders
<policy domain="coder" rights="none" pattern="INFO" />
<policy domain="coder" rights="none" pattern="JSON" />
<policy domain="coder" rights="none" pattern="YAML" />
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

