CVE-2026-26284
C# vulnerability analysis and mitigation

Overview

CVE-2026-26284 is a heap-based buffer overflow and out-of-bounds read vulnerability in ImageMagick's PCD (Photo CD) file decoder. The flaw arises from improper boundary checking when processing Huffman-coded data, combined with an incorrect initialization in the decoder function. It affects ImageMagick versions prior to 7.1.2-15 (7.x series) and prior to 6.9.13-40 (6.x series), as well as Magick.NET NuGet packages prior to version 14.10.3. The vulnerability was published on February 23–24, 2026. The GitHub Advisory (GHSA-wrhr-rf8j-r842) assigns a CVSS v3.1 score of 6.5 (Moderate), while Feedly's aggregated data notes a higher score of 9.1 (Critical) from some sources (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is an incorrect initialization within the PCD Huffman decoder function that fails to properly validate buffer boundaries before reading data (CWE-122: Heap-based Buffer Overflow, CWE-125: Out-of-bounds Read, CWE-787: Out-of-bounds Write, CWE-131: Incorrect Calculation of Buffer Size). An attacker can exploit this by supplying a specially crafted PCD file to any system or service that processes it with a vulnerable ImageMagick version — no authentication or user interaction is required. The AddressSanitizer output included in the advisory confirms a heap-buffer-overflow: READ of size 1 at 0x502000003c6c thread T0, indicating a one-byte overread on the heap (GitHub Advisory, Github Advisory).

Impact

Successful exploitation can result in unauthorized disclosure of heap memory contents (confidentiality impact) and denial of service via application crash (availability impact); there is no integrity impact. The network-accessible nature of the vulnerability means it can be triggered remotely against any service that accepts and processes user-supplied PCD image files, such as web applications, image processing pipelines, or media conversion services. Sensitive data residing in heap memory adjacent to the read buffer could be exposed to an unauthenticated remote attacker (GitHub Advisory, Red Hat Bugzilla).

Exploitation steps

  1. Reconnaissance: Identify services or applications that accept image uploads and process them with ImageMagick (e.g., web apps, APIs, CMS platforms). Confirm the installed ImageMagick version is below 7.1.2-15 or 6.9.13-40 using version disclosure banners or error messages.
  2. Craft malicious PCD file: Create a specially crafted Photo CD (PCD) file with malformed Huffman-coded data that triggers the incorrect initialization in the PCD decoder, causing the boundary check to fail.
  3. Submit the file: Upload or submit the crafted PCD file to the target service (e.g., via a file upload form, API endpoint, or email attachment processed by the server).
  4. Trigger out-of-bounds read: When ImageMagick processes the file, the decoder reads one or more bytes beyond the allocated heap buffer, potentially leaking adjacent heap memory contents or causing a crash (denial of service).
  5. Collect output: If the application returns image metadata, error messages, or processed output, analyze it for leaked memory contents; otherwise, observe the crash as a denial-of-service condition (GitHub Advisory).

Indicators of compromise

  • Network: Unusual or repeated uploads of .pcd files to image-processing endpoints from unexpected sources; large volumes of PCD file submissions from a single IP.
  • Logs: Application or web server logs showing processing of PCD files followed by ImageMagick crashes or error messages referencing heap corruption or AddressSanitizer output; entries like heap-buffer-overflow in stderr or crash logs.
  • File System: Unexpected .pcd files in upload directories or temporary processing folders, especially with anomalous file sizes or structures.
  • Process: ImageMagick processes (convert, magick) terminating abnormally (segmentation faults, SIGABRT) when processing PCD files; core dump files generated by the ImageMagick process.

Mitigation and workarounds

Upgrade ImageMagick to version 7.1.2-15 or later (7.x series) or 6.9.13-40 or later (6.x series); Magick.NET users should upgrade to version 14.10.3 or later. If immediate patching is not feasible, restrict or disable processing of PCD (Photo CD) files from untrusted sources, and implement strict input validation to reject PCD files at the application layer. Linux distribution users should apply vendor-provided security updates from Red Hat, Ubuntu (USN-8069-1), Debian, SUSE/openSUSE, and Amazon Linux as they become available (GitHub Advisory, Red Hat Bugzilla, Github Advisory).

Community reactions

The vulnerability was reported by security researcher ylwango613 and published by ImageMagick maintainer dlemstra via the GitHub Security Advisory program. Red Hat tracked the issue via Bugzilla (Bug 2442137) and assigned it medium severity. Multiple Linux distributions — including Ubuntu, Debian, SUSE/openSUSE, and Amazon Linux — issued security advisories and package updates following disclosure. No significant social media controversy or high-profile researcher commentary beyond standard advisory coverage has been observed (GitHub Advisory, Red Hat Bugzilla).

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