CVE-2026-28686
C# vulnerability analysis and mitigation

Overview

CVE-2026-28686 is a heap-based buffer overflow vulnerability in ImageMagick's PCL (Printer Command Language) encoder, caused by an undersized output buffer allocation. It affects ImageMagick versions prior to 7.1.2-16 (in the 7.x branch) and prior to 6.9.13-41 (in the 6.x branch), as well as Magick.NET NuGet packages prior to version 14.10.4. The vulnerability was published on March 9, 2026, by researcher zerojackyi and assigned a CVSS v3.1 base score of 6.8 (Medium) (GitHub Advisory, Red Hat).

Technical details

The root cause is an incorrect calculation of the output buffer size during PCL encoding (CWE-131), which results in a heap-based buffer overflow write (CWE-122). Specifically, the PCL encoder allocates an undersized output buffer, and a subsequent write of size 1 byte beyond the buffer boundary is triggered during image encoding operations. The attack vector is local (AV:L), requires no privileges (PR:N), and no user interaction (UI:N), meaning a local attacker can supply a crafted image file to trigger the overflow. The vulnerability was reported with an AddressSanitizer trace showing WRITE of size 1 at 0x7e79f91f31a0 (GitHub Advisory, Red Hat Bugzilla).

Impact

Successful exploitation can cause a denial of service (DoS) by crashing the ImageMagick process, rendering the software unavailable. There is also a low-severity integrity impact, as the out-of-bounds write could potentially corrupt adjacent heap memory. Confidentiality is not impacted by this vulnerability. The scope is limited to the affected ImageMagick process and does not extend to other system components (GitHub Advisory, Red Hat).

Exploitation steps

  1. Identify a target: Locate a system running a vulnerable version of ImageMagick (prior to 7.1.2-16 or 6.9.13-41) with local access available.
  2. Craft a malicious image file: Prepare a specially crafted image file designed to trigger the PCL encoder's undersized buffer allocation when converted to PCL format.
  3. Trigger PCL encoding: Execute an ImageMagick command that invokes the PCL encoder on the crafted file, for example: convert malicious_input.png output.pcl.
  4. Trigger the overflow: The PCL encoder allocates an undersized output buffer and performs an out-of-bounds write of 1 byte, causing a heap corruption.
  5. Achieve DoS or memory corruption: The process crashes (DoS) or, in edge cases, adjacent heap memory is corrupted, potentially affecting data integrity (GitHub Advisory).

Indicators of compromise

  • Process: Unexpected crashes or segmentation faults in the convert, magick, or related ImageMagick processes, particularly when processing PCL output.
  • Logs: System logs (e.g., /var/log/syslog, application logs) showing ImageMagick process termination with signals such as SIGABRT or SIGSEGV during PCL encoding operations.
  • File System: Presence of crafted or unusual image files submitted for conversion to PCL format in directories monitored by ImageMagick-based services.

Mitigation and workarounds

Update ImageMagick to version 7.1.2-16 or later (7.x branch) or 6.9.13-41 or later (6.x branch). For Magick.NET NuGet users, upgrade to version 14.10.4 or later. As a workaround where patching is not immediately possible, restrict local access to systems running vulnerable ImageMagick versions and consider disabling or limiting PCL encoding functionality if it is not required for business operations. Patches are also available through downstream Linux distribution advisories for Debian, SUSE, and Amazon Linux 2 (GitHub Advisory, Red Hat Bugzilla).

Community reactions

The vulnerability received routine coverage from Linux security advisory aggregators including LinuxSecurity.com and LinuxCompatible.org, reflecting standard patch-cycle attention. Red Hat tracked the issue via Bugzilla and published a CVE advisory. No notable researcher commentary or significant social media discussion beyond automated CVE feeds has been observed for this vulnerability.

Additional resources


SourceThis report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-p5rm-jg5c-8c77MEDIUM6.1
  • C# logoC#
  • Microsoft.OpenApi.Kiota
NoYesJul 24, 2026
CVE-2026-62946MEDIUM5.1
  • C# logoC#
  • Magick.NET-Q16-AnyCPU
NoYesJul 24, 2026
CVE-2026-62363MEDIUM5
  • C# logoC#
  • Magick.NET-Q16-HDRI-OpenMP-arm64
NoYesJul 24, 2026
CVE-2026-62343MEDIUM4.7
  • C# logoC#
  • Magick.NET-Q16-OpenMP-arm64
NoYesJul 24, 2026
GHSA-464c-974j-9xm6LOW3.3
  • JavaScript logoJavaScript
  • @aws-cdk/aws-codebuild
NoYesJul 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management