CVE-2026-33900
C# vulnerability analysis and mitigation

Overview

CVE-2026-33900 is a heap overflow vulnerability in ImageMagick caused by an integer overflow/wraparound in the VIFF (Visualization Image File Format) encoder, affecting only 32-bit builds. It was disclosed on April 13, 2026, and affects ImageMagick versions below 6.9.13-44 and 7.x versions below 7.1.2-19, as well as Magick.NET NuGet packages below version 14.12.0. The vulnerability was reported by researcher shitianyu-2004 and published under GHSA-v67w-737x-v2c9. The CVSS v3.1 base score is 5.9 (Moderate) per the official GitHub advisory, though NVD estimates it at 7.5 (High) (Github Advisory, ImageMagick Advisory).

Technical details

The root cause is an integer truncation/wraparound (CWE-190: Integer Overflow or Wraparound) in the WriteVIFFImage function within coders/viff.c. On 32-bit builds, the packets variable — a MagickSizeType value — is cast to size_t for memory allocation; when the value exceeds the 32-bit size_t maximum, it wraps around to a smaller value, causing AcquireVirtualMemory to allocate an undersized buffer. Subsequent writes to this buffer result in an out-of-bounds heap write (CWE-787). The fix, committed in d27b840, adds a bounds check: if (packets != (MagickSizeType) ((size_t) packets) before the allocation, throwing a ResourceLimitError if truncation would occur (ImageMagick Commit, ImageMagick Advisory).

Impact

Successful exploitation results in an out-of-bounds heap write that causes a crash of the ImageMagick process, leading to a denial of service condition. The impact is limited to availability — there is no confidentiality or integrity impact identified. The vulnerability is only exploitable on 32-bit builds of ImageMagick, which limits the affected population, and there is no evidence of code execution potential beyond a crash (Github Advisory, ImageMagick Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2026-33900. The EPSS score is approximately 0.02% (6th percentile), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the target to be running a 32-bit build of ImageMagick and processing a specially crafted VIFF image, which adds complexity (Github Advisory).

Exploitation steps

  1. Identify target: Locate a service or application running a 32-bit build of ImageMagick (versions below 6.9.13-44 or 7.x below 7.1.2-19) that accepts user-supplied image files for processing.
  2. Craft malicious VIFF image: Create a specially crafted VIFF image file where the computed packets value (used for pixel buffer allocation) is large enough to overflow a 32-bit size_t when cast, causing integer wraparound.
  3. Submit the image: Upload or submit the crafted VIFF file to the target application, triggering ImageMagick's WriteVIFFImage function to process it.
  4. Trigger heap overflow: The truncated packets value causes an undersized heap buffer to be allocated; subsequent pixel data writes overflow the buffer, resulting in a crash (denial of service) (ImageMagick Advisory, ImageMagick Commit).

Indicators of compromise

  • Logs: Unexpected ResourceLimitError or MemoryAllocationFailed errors in ImageMagick logs when processing VIFF image files; application crash logs or core dumps associated with the ImageMagick process.
  • Process: Abnormal termination (segmentation fault or abort signal) of the ImageMagick process (convert, magick, or embedding application) when handling VIFF-format files.
  • File System: Presence of unusual or oversized .viff or .vif image files submitted by external users in upload directories or temporary processing folders.

Mitigation and workarounds

Upgrade ImageMagick to version 7.1.2-19 or 6.9.13-44, which include the fix for this vulnerability. For .NET applications using Magick.NET, upgrade to version 14.12.0 or later. As a workaround where upgrading is not immediately possible, restrict or disable processing of VIFF image files (e.g., via ImageMagick's policy.xml to deny the VIFF format), or avoid deploying 32-bit builds of ImageMagick. OpenSUSE and Debian have also released distribution-level security updates addressing this issue (ImageMagick Release, Magick.NET Release, Github Advisory).

Community reactions

Red Hat tracked the vulnerability via Bugzilla (bug #2458020) and published a CVE advisory page. OpenSUSE issued security announcements for affected packages. Debian issued security advisories (DSA-6240-1 and DLA-4559-1) addressing ImageMagick. Coverage has been limited to standard vulnerability tracking outlets with no notable researcher commentary or social media discussion beyond routine disclosure (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

CVE-2026-70354HIGH7.8
  • C# logoC#
  • cpe:2.3:a:microsoft:visual_studio_2022
NoYesAug 11, 2026
CVE-2026-62909HIGH7.8
  • C# logoC#
  • Microsoft.NETCore.App.Runtime.linux-arm64
NoYesAug 11, 2026
GHSA-pfvm-w89x-94jwHIGH7.5
  • C# logoC#
  • SIPSorcery
NoYesAug 12, 2026
GHSA-jwjp-4649-v8jpHIGH7.5
  • C# logoC#
  • SIPSorcery
NoYesAug 12, 2026
CVE-2026-48798HIGH7.1
  • C# logoC#
  • SSH.NET
NoYesAug 12, 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