Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-32545

CVE-2022-32545: ImageMagick DOS Vulnerability

CVE-2022-32545 is a denial of service flaw in ImageMagick that causes undefined behavior when processing crafted input. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 18, 2026

CVE-2022-32545 Overview

A vulnerability was discovered in ImageMagick involving an integer overflow condition in the PSD image file processing code. When crafted or untrusted input is processed, the vulnerability causes values outside the range of representable values of type 'unsigned char' at coders/psd.c. This leads to a negative impact on application availability and other problems related to undefined behavior.

Critical Impact

This integer overflow vulnerability in ImageMagick's PSD parser can be exploited through maliciously crafted image files, potentially leading to application crashes, denial of service, or undefined behavior that could be leveraged for further exploitation.

Affected Products

  • ImageMagick (multiple versions)
  • Fedora Project Extra Packages for Enterprise Linux 8.0
  • Fedora 36
  • Red Hat Enterprise Linux 7.0

Discovery Timeline

  • June 16, 2022 - CVE-2022-32545 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-32545

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The flaw exists in ImageMagick's PSD (Photoshop Document) image format coder, specifically in how pixel data is processed during image parsing. When processing specially crafted PSD files, the code improperly handles type conversions, causing values to exceed the representable range of an unsigned char (0-255).

The vulnerability requires local access and user interaction to exploit, meaning an attacker would need to convince a user to open a malicious image file with an application that uses ImageMagick for image processing. This attack vector is commonly exploited through phishing campaigns or by hosting malicious files on compromised websites.

Root Cause

The root cause lies in improper integer type handling during pixel manipulation in the PSD decoder. When processing pixel data in bit-packed format, the code directly casts a pixel value to unsigned char without first ensuring the value is within the valid range. This can result in integer overflow when the input pixel value is outside the representable range.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious PSD image file with specially designed pixel data that triggers the integer overflow condition. When a victim processes this file using ImageMagick (either directly via command-line tools or through applications that embed ImageMagick), the overflow occurs, leading to undefined behavior. This can manifest as application crashes, denial of service, or potentially memory corruption that could be chained with other vulnerabilities.

c
// Vulnerable code (before patch) - coders/psd.c
// Source: https://github.com/ImageMagick/ImageMagick/commit/9c9a84cec4ab28ee0b57c2b9266d6fbe68183512

          number_bits=8;
        for (bit = 0; bit < (ssize_t) number_bits; bit++)
        {
-          SetPSDPixel(image,channel,packet_size,(((unsigned char) pixel)
+          SetPSDPixel(image,channel,packet_size,(((unsigned char)((ssize_t)pixel))
            & (0x01 << (7-bit))) != 0 ? 0 : QuantumRange,q,exception);
          q+=GetPixelChannels(image);
          x++;

The fix introduces an intermediate cast to ssize_t (signed size type) before casting to unsigned char, ensuring proper handling of the value range and preventing undefined behavior from direct type conversion.

Detection Methods for CVE-2022-32545

Indicators of Compromise

  • Unexpected crashes of ImageMagick tools (convert, identify, mogrify) when processing PSD files
  • Application crashes in software that uses ImageMagick libraries for image processing
  • Segmentation faults or core dumps associated with PSD file processing
  • Anomalous PSD files with unusual pixel data structures in upload directories or image caches

Detection Strategies

  • Monitor system logs for ImageMagick-related crashes or segmentation faults, particularly when processing PSD format files
  • Implement file integrity monitoring on ImageMagick binary installations to detect unauthorized modifications
  • Deploy endpoint detection solutions that can identify exploitation attempts through behavioral analysis of image processing operations
  • Use static analysis tools to scan for vulnerable ImageMagick versions in your software stack

Monitoring Recommendations

  • Enable core dump collection and analysis for ImageMagick processes to identify exploitation attempts
  • Implement rate limiting and monitoring for image upload functionality in web applications
  • Monitor for unusual resource consumption patterns during image processing that may indicate exploitation
  • Track ImageMagick version deployments across infrastructure to ensure consistent patching

How to Mitigate CVE-2022-32545

Immediate Actions Required

  • Update ImageMagick to the latest patched version immediately
  • Audit all systems and applications that use ImageMagick for image processing
  • Consider implementing input validation to restrict processing of PSD files from untrusted sources
  • Deploy the official patches from ImageMagick Commit #9c9a84c or ImageMagick6 Commit #450949e

Patch Information

Security patches have been released by the ImageMagick project addressing this vulnerability. The fixes are available in the official repositories:

  • ImageMagick 7.x: Commit 9c9a84cec4ab28ee0b57c2b9266d6fbe68183512
  • ImageMagick 6.x: Commit 450949ed017f009b399c937cf362f0058eacc5fa

Additional information is available through the Red Hat Bug Report #2091811 and the Debian LTS Security Announcement.

Workarounds

  • Disable PSD format support in ImageMagick's policy.xml configuration file if PSD processing is not required
  • Implement application-level filtering to reject PSD files from untrusted sources before passing to ImageMagick
  • Run ImageMagick processes in sandboxed environments with restricted permissions to limit impact of successful exploitation
  • Use alternative image processing libraries for PSD files in high-risk environments until patching is complete
xml
<!-- ImageMagick policy.xml configuration to disable PSD processing -->
<policymap>
  <!-- Disable PSD format to mitigate CVE-2022-32545 -->
  <policy domain="coder" rights="none" pattern="PSD" />
  <policy domain="coder" rights="none" pattern="PSDM" />
  
  <!-- Additional recommended security policies -->
  <policy domain="resource" name="memory" value="256MiB"/>
  <policy domain="resource" name="map" value="512MiB"/>
  <policy domain="resource" name="disk" value="1GiB"/>
</policymap>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechImagemagick

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • Debian LTS Security Announcement
  • Vendor Resources
  • Red Hat Bug Report #2091811

  • ImageMagick Commit Update #9c9a84c

  • ImageMagick6 Commit Update #450949e
  • Related CVEs
  • CVE-2026-40312: ImageMagick MSL Decoder DoS Vulnerability

  • CVE-2026-33908: ImageMagick XML Processing DoS Vulnerability

  • CVE-2026-33535: ImageMagick DoS Vulnerability

  • CVE-2026-31853: ImageMagick SFW Decoder DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English