CVE-2026-32259

ImageMagick has a possible stack buffer overflow in sixel encoder

Published Mar 12, 2026 CVSS 3.1 · 6.7 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-16 and 6.9.13-41, when a memory allocation fails in the sixel encoder it would be possible to write past the end of a buffer on the stack. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.

Analysis

AI-generated

Technical impact

ImageMagick has a possible stack buffer overflow in its sixel encoder. When a memory allocation fails during sixel encoding, the program can write beyond the end of a stack buffer, potentially corrupting memory. This flaw is a classic stack buffer overflow (CWE-121) that could lead to exploitation such as arbitrary code execution or program termination, depending on the attacker's control over the input.

Affected Systems

Affected product is ImageMagick. Versions before 7.1.2-16 and before 6.9.13-41 are vulnerable. The vulnerability is fixed in ImageMagick 7.1.2-16 and 6.9.13-41.

Risk and Exploitability

The CVSS severity is 6.7 (Medium). EPSS indicates a very low likelihood of exploitation (<1%). It is not listed in the CISA Known Exploited Vulnerabilities catalog. The likely attack vector involves processing a malicious sixel-encoded image; therefore, local or remote attacker with ability to submit such data to the vulnerable ImageMagick instance could exploit the flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update ImageMagick to version 7.1.2-16 or newer, or 6.9.13-41 or a later release.
  • Verify that the upgrade has been applied correctly by checking the installed version.
  • If an update cannot be performed immediately, avoid processing sixel encoded images until the fix is applied.
  • Monitor vendor advisories for any additional patches or recommendations.

Generated by OpenCVE AI on March 18, 2026 at 15:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4539-1 imagemagick security update
Debian DSA Debian DSA DSA-6169-1 imagemagick security update
Debian DSA Debian DSA DSA-6210-1 imagemagick security update
Ubuntu USN Ubuntu USN USN-8592-1 ImageMagick vulnerabilities
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': 'total'}, '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 7.1.2-16 and 6.9.13-41, when a memory allocation fails in the sixel encoder it would be possible to write past the end of a buffer on the stack. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.
Title ImageMagick has a possible stack buffer overflow in sixel encoder
Weaknesses CWE-121
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 13, 2026, 4:14 PM
Reserved
Mar 11, 2026, 3:05 PM
Status
Analyzed
Published
Mar 12, 2026, 8:16 PM
Modified
Jun 17, 2026, 10:35 AM
Severity
Moderate
Public date
Mar 12, 2026, 7:38 PM