CVE-2026-48734: ImageMagick Stack Overflow in MVG File Parsing
ImageMagick, a widely-used open-source image manipulation tool, contains a stack overflow vulnerability when processing specially crafted MVG (Magick Vector Graphics) files. An attacker can create a malicious MVG file that, when opened by a user in ImageMagick, causes the application to crash or become unresponsive. This occurs because the software fails to properly limit recursion depth or track which parts of the file it has already processed, allowing unbounded stack consumption. The vulnerability requires user interaction—someone must explicitly open the malicious file—but no special privileges are needed.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-674
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-10 / 2026-06-17
NVD description (verbatim)
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-49 and 7.1.2-24, a crafted MVG file could result in a stack overflow due to a missing depth or visited-set check. This issue has been patched in versions 6.9.13-49 and 7.1.2-24.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-48734 is a stack overflow vulnerability in ImageMagick's MVG file parsing logic, stemming from missing depth checks and absence of a visited-set mechanism during recursive processing. When ImageMagick parses a crafted MVG file, it recursively processes nested structures without bounds, exhausting the call stack. The root cause is CWE-674 (Uncontrolled Recursion). The issue affects ImageMagick versions prior to 6.9.13-49 (legacy branch) and 7.1.2-24 (current branch). Exploitation is local-only and requires user action to open the malicious file.
Business impact
ImageMagick is integral to many image processing workflows, from web service backends that auto-generate thumbnails to desktop publishing tools. A successful exploit causes denial of service—the affected application crashes when processing the malicious file. In server environments where ImageMagick handles untrusted user uploads, this could be exploited to disrupt service availability. Organizations relying on ImageMagick for batch image processing or automated workflows may experience unexpected application hangs. However, the impact is limited to availability; no data theft, corruption, or privilege escalation is possible.
Affected systems
ImageMagick versions prior to 6.9.13-49 and 7.1.2-24 are affected. This includes both the legacy 6.9.x series and the current 7.1.x series. Any system running an older release—including Linux distributions with outdated packages, Docker images built on older base images, and standalone installations—is vulnerable when processing untrusted MVG files. Organizations should audit their ImageMagick deployment versions across development, testing, and production environments.
Exploitability
Exploitation requires local file access and user interaction; the vulnerability cannot be triggered remotely by default. An attacker would need to either place a malicious MVG file where a user is likely to open it (via email, download, shared storage) or compromise a system where an automated service processes untrusted image files. If ImageMagick is exposed via a web service that converts or resizes user-supplied images, the risk is elevated. The CVSS score of 5.5 (Medium) reflects the local-only attack vector and requirement for user action, balanced against the guaranteed availability impact.
Remediation
Organizations should upgrade ImageMagick to version 6.9.13-49 or later (if using the 6.9.x branch) or 7.1.2-24 or later (if using the 7.1.x branch). Before upgrading, test in a staging environment to ensure compatibility with dependent applications. For systems where immediate patching is not feasible, implement input validation to reject suspicious or untrusted MVG files, disable MVG format support if not required, or restrict ImageMagick access to trusted image sources only.
Patch guidance
Consult the official ImageMagick release notes and security advisories to confirm the exact patch versions for your deployment. Verify against the vendor advisory that the version you plan to deploy is indeed 6.9.13-49 or 7.1.2-24 or later. Test patches in a non-production environment first, particularly if ImageMagick is embedded in third-party applications or custom scripts. Many Linux distributions provide backported patches; check your vendor's security bulletin for the specific package version available in your repository.
Detection guidance
Monitor for unexpected ImageMagick process crashes or high CPU/memory usage when processing image files. Log file open attempts and processing errors; look for references to MVG files in error logs. If feasible, analyze incoming MVG files for suspicious recursive or deeply nested structures before processing. Intrusion detection systems with image file inspection capabilities may flag malformed MVG headers. In containerized environments, watch for container restarts or OOM kills triggered by ImageMagick tasks.
Why prioritize this
This vulnerability merits prompt but not emergency action. It is a medium-severity denial-of-service issue with no data breach or code execution risk. However, organizations that process user-supplied images—particularly web services, content management systems, and automated image conversion pipelines—should prioritize patching. The low barrier to exploitation (user opens a file) and widespread use of ImageMagick make this a meaningful risk if your threat model includes user-supplied image processing. For organizations that do not process untrusted MVG files or have strong input validation in place, the risk is lower.
Risk score, explained
The CVSS 3.1 score of 5.5 reflects: Attack Vector (Local) and low Attack Complexity, combined with a guaranteed Availability impact. No authentication is required, and user interaction is necessary but expected (opening a file). Confidentiality and Integrity are not affected. The Medium severity is appropriate for a denial-of-service vulnerability that disrupts availability without exposing data or enabling privilege escalation.
Frequently asked questions
Can this vulnerability be exploited over the network?
No. CVE-2026-48734 is a local attack only. An attacker must place a malicious MVG file on the target system or compromise a system where ImageMagick processes untrusted files. However, if ImageMagick is exposed via a web service that processes user-uploaded images, the risk increases because the service is local to the web server and can be triggered remotely by uploading a malicious file.
Do I need to upgrade if I don't use MVG files?
MVG (Magick Vector Graphics) is one of many image formats ImageMagick supports. If your workflows never process MVG files, your immediate risk is lower. However, consider upgrading anyway as part of routine patch management, and verify that MVG support is disabled in your deployment if you want to be absolutely certain.
What should I do if I cannot patch immediately?
Implement compensating controls: restrict ImageMagick to process only trusted image sources, disable MVG format support if possible, validate image files before processing, and monitor for crashes or abnormal behavior. Upgrade as soon as your change management process allows.
Is this vulnerability being actively exploited?
This vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, indicating no confirmed active exploitation in the wild as of the publication date. However, the low exploit barrier means it could be weaponized if widely disclosed.
This analysis is based on published vulnerability data available as of the date of publication. SEC.co does not guarantee the completeness or accuracy of vendor advisory details. Organizations must verify patch availability, compatibility, and deployment requirements with the official ImageMagick project and their respective Linux distributors or vendors before implementing patches. This document does not constitute security advice tailored to any specific organization and should be reviewed by qualified security professionals in the context of your environment and risk tolerance. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-45664MEDIUMImageMagick MNG Coder Resource Limit Bypass (CVSS 5.3)
- CVE-2026-46557MEDIUMImageMagick Stack Overflow in fx Operation – Patch Guide
- CVE-2025-7005MEDIUMAvast/AVG/Norton Antivirus Denial-of-Service via Malformed PE File
- CVE-2025-7010MEDIUMAvast Antivirus Stack Overflow DoS Vulnerability – VPS Definition Patch Required
- CVE-2026-40989MEDIUMSpring Cloud Function Infinite Recursion OOM Vulnerability
- CVE-2026-44740MEDIUMBilly Go Library Denial-of-Service via Input Validation Flaws
- CVE-2026-47306MEDIUMrlottie Uncontrolled Recursion Denial-of-Service Vulnerability
- CVE-2026-47320MEDIUMrlottie Memory Safety Vulnerability – Uninitialized Pointer & Recursion Flaw