CVE-2026-48724: ImageMagick Heap Buffer Over-Write in Floyd-Steinberg Dithering
ImageMagick versions before 7.1.2-24 contain a memory corruption flaw triggered when processing images that use a mask combined with the Floyd-Steinberg dithering algorithm. The vulnerability allows an attacker to overwrite heap memory in negative offsets, potentially causing the application to crash. An attacker would need to trick a user into opening a specially crafted image file, making this a local attack that depends on user interaction.
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-787
- 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 version 7.1.2-24, when using an image with mask the Floyd-Steinberg dithering method it will cause a negative heap buffer over-write. This issue has been patched in version 7.1.2-24.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-48724 is a negative heap buffer over-write vulnerability in ImageMagick's dithering implementation. When the Floyd-Steinberg dithering method processes an image with a mask layer, a boundary condition fails to prevent writing beyond allocated heap boundaries in the negative direction. This is classified as an out-of-bounds write (CWE-787). The vulnerability requires local file access and user interaction to trigger, as it manifests only during image processing operations initiated by the end user.
Business impact
The primary business risk is denial of service—legitimate image processing workflows will crash when encountering malicious files. This could disrupt automated batch processing pipelines, web services that resize or convert user-uploaded images, and desktop applications relying on ImageMagick. Secondary risk includes potential data corruption if the heap over-write corrupts adjacent memory structures before the crash occurs. Organizations running ImageMagick in user-facing or batch contexts should treat this as a stability and availability issue.
Affected systems
ImageMagick prior to version 7.1.2-24 is affected. This includes all 7.1.2 releases up to and including 7.1.2-23, as well as all earlier major and minor versions (7.1.1, 7.1.0, 7.0.x, 6.x, etc.). Any system or service using an unpatched ImageMagick installation that processes untrusted images—such as web servers handling user uploads, batch image conversion services, or content management systems—is in scope.
Exploitability
The vulnerability has a low exploitability barrier in terms of technical complexity. An attacker needs only to craft a PNG, GIF, or other image format that combines a mask with dithering parameters and distribute it to target users. However, actual exploitation requires user interaction: the victim must open or process the image file within an application that uses the vulnerable ImageMagick library. There is no unauthenticated network vector; this is strictly a local file processing issue. The defect does not appear on the public KEV catalog, indicating no evidence of active in-the-wild exploitation at the time of publication.
Remediation
Update ImageMagick to version 7.1.2-24 or later. This patch addresses the boundary condition in the Floyd-Steinberg dithering routine. Organizations should test the patched version in a staging environment first, particularly if they run complex image processing pipelines, to ensure compatibility with existing workflows. For systems where immediate patching is not feasible, input validation (rejecting images with mask+dithering combinations) or sandboxing ImageMagick processes can reduce risk.
Patch guidance
Apply the official ImageMagick 7.1.2-24 update from the project repository or your distribution's package manager. Verify the patch was successfully applied by confirming the installed version via 'convert -version'. If you maintain a custom ImageMagick build, rebuild from the patched source code. No workarounds exist; patching is the definitive remediation. Coordinate patching across all systems where ImageMagick is installed, including development machines, CI/CD infrastructure, and production servers.
Detection guidance
Monitor for ImageMagick process crashes or segmentation faults when processing images with dithering operations. Application logs may show memory access violations. Network-based detection is limited since this is a local file issue; instead, focus on endpoint monitoring. Check running process versions with 'convert -version' to identify unpatched installations. For enterprise deployments, software asset management tools can scan for ImageMagick versions and flag those below 7.1.2-24. No specific intrusion detection signatures are needed, as the vulnerability does not enable network compromise.
Why prioritize this
This vulnerability merits prompt but not emergency prioritization. The CVSS score of 5.5 reflects medium severity: it impacts availability (denial of service) via a local attack requiring user interaction. Organizations with high-volume image processing workflows, user-uploaded content handling, or batch automation should patch within 2–3 weeks. Those with limited ImageMagick exposure can extend the timeline to 4–6 weeks. The absence from the KEV catalog and lack of public exploit code reduce the urgency relative to critical network-exploitable flaws, but the simplicity of triggering a crash on unprotected systems justifies timely remediation.
Risk score, explained
The CVSS 3.1 score of 5.5 (MEDIUM) reflects: Attack Vector (Local), Attack Complexity (Low), Privileges Required (None), User Interaction (Required), Scope (Unchanged), and no impact on Confidentiality or Integrity, but high impact on Availability. The score appropriately captures that an attacker cannot silently corrupt data or extract secrets, but can reliably cause application crashes. The lack of privilege escalation or scope expansion keeps the score in the medium band despite the reliable denial-of-service mechanism.
Frequently asked questions
Can this vulnerability be exploited remotely or through email attachments?
No. The vulnerability requires local file access and processing by ImageMagick on the target system. An attacker could distribute a malicious image via email or a website, but the user must explicitly open or process the file using an application that invokes ImageMagick. The vulnerability does not enable remote code execution or network propagation.
Will patching ImageMagick break my existing image processing scripts?
Unlikely. The patch fixes a boundary condition without changing the public API or normal behavior for legitimate images. Test the patched version in a non-production environment with representative workloads before deploying company-wide, but incompatibility is rare.
What image formats are affected?
Any image format that ImageMagick supports and that includes both a mask layer and Floyd-Steinberg dithering parameters can trigger the vulnerability. This includes PNG, GIF, and TIFF with alpha channels or explicit dithering directives. However, the vast majority of real-world images processed do not use this specific combination, limiting the practical attack surface.
How do I know if my system is affected?
Run 'convert -version' on the machine in question. If the version is below 7.1.2-24, you are affected. Verify across all servers, containers, development machines, and CI/CD systems where ImageMagick is installed, as versions can vary across your infrastructure.
This analysis is based on publicly available information and vendor advisories current as of the publication date. CVSS scores and severity ratings are provided by the CVE program and may be updated. Always verify patch version numbers and compatibility requirements against the official ImageMagick security advisory and your vendor's documentation before deploying in production. SEC.co does not guarantee the completeness or real-time accuracy of this information and recommends consulting with your security team and ImageMagick maintainers for environment-specific guidance. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-46521MEDIUMImageMagick LZMA Out-of-Bounds Write – Patch & Detection Guide
- CVE-2026-46559MEDIUMImageMagick JP2 Heap Buffer Overflow – MEDIUM Severity
- CVE-2026-46520HIGHImageMagick Out-of-Bounds Heap Write Denial of Service
- CVE-2025-10238MEDIUMThinkPad BIOS Out-of-Bounds Write, SMM Code Execution Risk
- CVE-2025-59614MEDIUMQualcomm Memory Corruption in RNG Command Handling
- CVE-2026-10114MEDIUMOpen5GS Out-of-Bounds Write in NF Profile Parser
- CVE-2026-10999MEDIUMGoogle Chrome ANGLE Integer Overflow Information Disclosure
- CVE-2026-11090MEDIUMChrome ANGLE Memory Leak Enables Cross-Origin Data Theft