MEDIUM 5.3

CVE-2026-45664: ImageMagick MNG Coder Resource Limit Bypass (CVSS 5.3)

ImageMagick, a widely-used tool for image processing and manipulation, has a vulnerability in its MNG (Multiple-Image Network Graphics) file handler that allows an attacker to bypass resource limits. By crafting a malicious MNG file with more images than the system's policy allows, an attacker can trigger excessive resource consumption—potentially causing performance degradation or denial of service. The vulnerability affects ImageMagick versions before 6.9.13-47 and 7.1.2-22, and has been resolved in those patch versions.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weaknesses (CWE)
CWE-400, CWE-407, CWE-674, CWE-770
Affected products
1 configuration(s)
Published / Modified
2026-06-10 / 2026-07-15

NVD description (verbatim)

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-47 and 7.1.2-22, because of a missing check in the MNG coder it would be possible to read more images than the list limit policy would allow resulting in excessive resource use. This issue has been patched in versions 6.9.13-47 and 7.1.2-22.

5 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability stems from insufficient validation in the MNG coder component. MNG files can contain multiple images, and ImageMagick applies a configurable limit policy to restrict how many images are processed. However, a missing bounds check in the MNG handler allows this limit to be circumvented. An attacker can construct an MNG file containing more images than the policy permits, causing the application to allocate and process more resources than intended. This maps to CWE-400 (Uncontrolled Resource Consumption), CWE-407 (Improper Restriction of Rendered UI Layers or Frames), CWE-674 (Uncontrolled Recursion), and CWE-770 (Allocation of Resources Without Limits or Throttling), reflecting the fundamental nature of the flaw.

Business impact

Organizations relying on ImageMagick for batch image processing, web-based image handling, or automated image conversion pipelines face risk of service disruption. An attacker sending specially crafted MNG files to an ImageMagick-based service could exhaust memory, CPU, or disk resources, degrading availability for legitimate users. For businesses running containerized or resource-constrained environments, this could trigger cascading failures. However, the CVSS 5.3 MEDIUM score reflects the fact that this is a denial-of-service vector with no confidentiality or integrity impact—the threat is operational rather than data-focused.

Affected systems

ImageMagick versions 6.9.13-46 and earlier in the 6.x branch, and versions 7.1.2-21 and earlier in the 7.x branch are vulnerable. Any system or service that processes MNG image files using affected ImageMagick versions is at risk. This includes web applications offering image upload or conversion features, automated image processing pipelines, and containerized services using ImageMagick as a dependency. Organizations should audit their supply chain to identify embedded or indirect use of ImageMagick.

Exploitability

Exploitation requires network access to submit a malicious MNG file to an ImageMagick-based service. No authentication or user interaction is required beyond file submission. The attack vector is straightforward—the attacker needs only to craft a valid MNG file structure with an excessive number of images. However, practical impact depends on the service's configuration: if resource limits are enforced at the container or system level, the effect may be contained. The vulnerability is not known to be actively exploited in the wild at present, and it has not been added to CISA's Known Exploited Vulnerabilities (KEV) catalog.

Remediation

Update ImageMagick to version 6.9.13-47 or later in the 6.x branch, or to version 7.1.2-22 or later in the 7.x branch. Verify the installed version with 'convert -version'. For organizations unable to patch immediately, implement network-level controls to restrict access to ImageMagick services and configure strict resource limits (memory, CPU, timeouts) at the application or container level. Consider disabling MNG file processing if it is not required for your workflows.

Patch guidance

Apply updates through your standard patch management process. For Linux distributions, check if ImageMagick is available via package managers (apt, yum, etc.) and update accordingly. For containerized deployments, rebuild images with patched versions of ImageMagick. Verify patching with 'convert -version' and confirm the reported version matches or exceeds 6.9.13-47 (6.x) or 7.1.2-22 (7.x). Test patched builds in a staging environment to ensure compatibility with existing image processing workflows before production deployment.

Detection guidance

Monitor application and system logs for unusual resource consumption patterns when processing image files. Look for spikes in memory usage, CPU utilization, or I/O activity associated with ImageMagick processes. If feasible, log file sizes and image counts processed; anomalously large MNG files with many embedded images warrant investigation. Web application firewalls can be configured to restrict uploads of oversized or suspicious MNG files. Runtime Application Self-Protection (RASP) solutions can detect and alert on resource exhaustion patterns triggered by specific file types.

Why prioritize this

While the CVSS score is MEDIUM and the vulnerability carries a denial-of-service risk rather than data exposure, prioritization depends on your attack surface. If your organization exposes ImageMagick-based image processing to untrusted external users, this merits prompt patching. If ImageMagick is used only for internal, trusted workflows, risk is lower but still warrants timely remediation. The lack of active exploitation and KEV status suggest this is not an imminent widespread threat, but the ease of exploitation and broad use of ImageMagick justify a measured but deliberate patch timeline.

Risk score, explained

The CVSS 3.1 score of 5.3 (MEDIUM) reflects a network-accessible vulnerability with low complexity and no authentication required, but limited impact scope. The scoring emphasizes availability (denial of service) with no confidentiality or integrity components. The absence of user interaction and the straightforward attack vector push the score upward, but the constraint to denial of service—rather than remote code execution or data exfiltration—prevents a higher rating. Organizations should assess their own risk by considering the criticality of affected services and the trustworthiness of file sources.

Frequently asked questions

Do I need to worry about this if I do not process MNG files?

If your ImageMagick deployment never encounters MNG files, the practical risk is minimal. However, many organizations do not explicitly control which image formats are processed, especially in web-facing applications. It is safer to assume MNG support is in use unless you have explicitly disabled or removed it. Patching remains a best practice regardless.

Can this vulnerability be exploited from the internet?

Yes. If your ImageMagick service is exposed to untrusted external input over the network—such as a web form that accepts image uploads—the vulnerability can be triggered remotely without authentication. Services running on internal networks or behind strict firewall rules face lower exposure, but the vulnerability remains present in unpatched versions.

What is the difference between versions 6.x and 7.x?

Both branches are actively used. Version 7.x is the newer, recommended branch; version 6.x is a legacy branch still receiving critical security updates. Organizations using either should apply the relevant patch: 6.9.13-47 or later for 6.x, and 7.1.2-22 or later for 7.x. Verify your installed version and apply the correct patch.

If I cannot patch immediately, what can I do?

Implement defense-in-depth controls: disable MNG file processing if not required, restrict network access to ImageMagick services, enforce strict resource quotas (memory, CPU, timeout) at the application or container level, and monitor for abnormal resource consumption. These measures do not fix the vulnerability but reduce the likelihood and impact of exploitation.

This analysis is provided for informational purposes. Patch version numbers and severity scores are derived from official vendor advisories and CVSS standards. Organizations should verify all patch information against the ImageMagick official release notes before deploying updates. SEC.co makes no warranty regarding the completeness or timeliness of this information, and users are responsible for assessing risk in their own environments and following their organization's change management procedures. No exploit code or weaponized proof-of-concept is included in this analysis. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).