CVE-2026-28686

ImageMagick has a write heap-buffer-overflow in PCL encoder via undersized output buffer

Published Mar 9, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-16 and 6.9.13-41, A heap-buffer-overflow vulnerability exists in the PCL encode due to an undersized output buffer allocation. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.

Analysis

AI-generated

Technical impact

ImageMagick, a free and open‑source image processing library, contains a heap‑buffer‑overflow vulnerability in its PCL encoder. The flaw arises from an undersized output buffer allocation, which allows an attacker to corrupt memory and potentially execute arbitrary code. This weakness corresponds to CWE‑122 and CWE‑131.

Affected Systems

The vulnerability affects all ImageMagick releases prior to 7.1.2‑16 and 6.9.13‑41. These older versions are susceptible when any image is processed using the PCL encoder component. Only the releases mentioned above incorporate the required fix.

Risk and Exploitability

The CVSS base score is 6.8, indicating moderate severity, while the EPSS score is below 1%, suggesting a low likelihood of exploitation at present. The vulnerability is not listed in the CISA KEV catalog. An attacker could trigger the overflow by supplying a malicious image to an application that embeds ImageMagick, and, based on the description, the most likely attack vector is image‑based exploitation that could result in remote code execution. Current patching mitigates all known risks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2‑16 or newer, or to 6.9.13‑41 or newer, to apply the vendor fix.
  • If an upgrade is not immediately possible, restrict the processing of untrusted image files to isolated environments or containers and validate input sizes to prevent buffer overflow.
  • Monitor application logs for abnormal memory usage or crashes that may indicate exploitation attempts and apply additional defensive code isolation as a temporary measure.

Generated by OpenCVE AI on April 16, 2026 at 10:09 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
Github GHSA Github GHSA GHSA-467j-76j7-5885 ImageMagick: Write heap-buffer-overflow in PCL encoder via undersized output buffer
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 7.1.2-16 and 6.9.13-41, A heap-buffer-overflow vulnerability exists in the PCL encode due to an undersized output buffer allocation. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.
Title ImageMagick has a write heap-buffer-overflow in PCL encoder via undersized output buffer
Weaknesses CWE-122
CWE-131
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

  • CWE-131

    Incorrect Calculation of Buffer Size

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 10, 2026, 2:26 PM
Reserved
Mar 2, 2026, 9:43 PM
Status
Analyzed
Published
Mar 10, 2026, 7:43 AM
Modified
Jun 17, 2026, 10:28 AM
Severity
Moderate
Public date
Mar 9, 2026, 9:33 PM