CVE-2026-46521

ImageMagick: Heap Buffer Over-Write in MIFF encoder when using LZMA compression

Published Jun 10, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-48 and 7.1.2-23, when using LZMA compression in the MIFF encoder an out of bounds write can occur due to a missing check. This issue has been patched in versions 6.9.13-48 and 7.1.2-23.

Analysis

AI-generated

Technical impact

ImageMagick, a widely used open‑source image manipulation library, has a heap buffer over‑write in the MIFF encoder when LZMA compression is used. The missing bounds check allows a crafted image to write beyond the allocated buffer, which can corrupt memory and may result in arbitrary code execution, data corruption, or a service crash. The vulnerability is categorized under CWE‑131, CWE‑787, and CWE‑835, reflecting improper buffer size calculation, heap buffer overflow, and unbounded array indexing, respectively. The CVSS score of 5.5 indicates a moderate severity that warrants attention but does not imply guaranteed remote execution.

Affected Systems

All installations of ImageMagick prior to versions 6.9.13‑48 and 7.1.2‑23 are affected. The vendor product is ImageMagick ImageMagick. The issue was fixed in the aforementioned releases, so any deployment using older versions should upgrade to at least these patch levels.

Risk and Exploitability

The CVSS rating of 5.5 reflects a moderate risk; the EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector involves delivering a malicious MIFF file containing LZMA compressed data to a vulnerable instance of ImageMagick, either locally or remotely depending on how the library is accessed. Successful exploitation would require the library to process the crafted file, triggering the out‑of‑bounds write and potentially allowing code execution or a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 6.9.13‑48 or later 7.1.2‑23
  • Disable LZMA compression or block MIFF image input in the application configuration if an upgrade cannot be performed immediately
  • Implement strict validation or sandboxing of image files before processing to mitigate the risk of malicious payloads

Generated by OpenCVE AI on June 10, 2026 at 23:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4609-1 imagemagick security update
Debian DSA Debian DSA DSA-6298-1 imagemagick security update
Debian DSA Debian DSA DSA-6310-1 imagemagick security update
Github GHSA Github GHSA GHSA-jcqp-6r6f-3mfx ImageMagick: Heap Buffer Over-Write in MIFF encoder when using LZMA compression
History
Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick
Type Values Removed Values Added
Description ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-48 and 7.1.2-23, when using LZMA compression in the MIFF encoder an out of bounds write can occur due to a missing check. This issue has been patched in versions 6.9.13-48 and 7.1.2-23.
Title ImageMagick: Heap Buffer Over-Write in MIFF encoder when using LZMA compression
Weaknesses CWE-131
CWE-252
CWE-787
CWE-835
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size

  • CWE-252

    Unchecked Return Value

  • CWE-787

    Out-of-bounds Write

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 11, 2026, 1:13 PM
Reserved
May 14, 2026, 7:12 PM
Status
Analyzed
Published
Jun 10, 2026, 11:16 PM
Modified
Jul 23, 2026, 9:10 AM
Severity
Moderate
Public date
Jun 10, 2026, 9:40 PM