CVE-2022-0284
ImageMagick vulnerability analysis and mitigation

Overview

A heap-based buffer overflow vulnerability was discovered in ImageMagick version 7.1.0-20, specifically in the GetPixelAlpha() function declared in MagickCore/pixel-accessor.h. The vulnerability is triggered when processing a specially crafted Tagged Image File Format (TIFF) image during conversion to PICON file format (GitHub Issue, RedHat Bugzilla).

Technical details

The vulnerability manifests as a heap buffer overflow during the GetPixelAlpha() function execution. The issue occurs specifically when converting TIFF images to PICON format, where the code incorrectly references the source image instead of the destination image for alpha channel operations. The bug was identified using Address Sanitizer (ASAN) which detected a READ overflow of size 4 bytes beyond an allocated memory region (GitHub Issue).

Impact

The exploitation of this vulnerability could potentially lead to denial of service conditions or information leaks when processing specially crafted TIFF images (RedHat Bugzilla).

Exploitability

A proof of concept exists demonstrating the vulnerability through the conversion of a specially crafted TIFF file to PICON format using the ImageMagick convert utility. The issue can be reproduced by compiling ImageMagick with Address Sanitizer and attempting to convert a malicious TIFF file (GitHub Issue).

Mitigation and workarounds

The vulnerability was fixed in a patch that corrected the image reference in the GetPixelAlpha() function calls. The fix involved changing the source of the alpha channel check from 'image' to 'picon' in the affected code sections (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related ImageMagick vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64685MEDIUM5.3
  • ImageMagick logoImageMagick
  • ImageMagick-c++
NoYesJul 30, 2026
CVE-2026-62363MEDIUM5
  • C# logoC#
  • seal-ImageMagick
NoYesJul 30, 2026
CVE-2026-66011MEDIUM4.8
  • ImageMagick logoImageMagick
  • perl-PerlMagick
NoYesJul 25, 2026
CVE-2026-62946MEDIUM4.7
  • C# logoC#
  • ImageMagick-config-7-upstream-open
NoYesJul 30, 2026
CVE-2026-62343MEDIUM4.7
  • C# logoC#
  • Magick.NET-Q8-OpenMP-arm64
NoYesJul 30, 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