A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-41131

CVE-2024-41131: Sixlabors ImageSharp DoS Vulnerability

CVE-2024-41131 is a denial of service flaw in Sixlabors ImageSharp's gif decoder caused by an out-of-bounds write. Attackers can exploit this with crafted gif files. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 26, 2026

CVE-2024-41131 Overview

CVE-2024-41131 is an out-of-bounds write vulnerability [CWE-787] in the GIF decoder of SixLabors ImageSharp, a widely used 2D graphics API for .NET. Attackers can trigger a crash by supplying a specially crafted GIF file to any application that processes images through the vulnerable decoder. Successful exploitation results in denial of service against the host process. The flaw resides in the LZW decoding logic used during GIF parsing. Maintainers have released fixed versions 3.1.5 and 2.1.9, and all users are advised to upgrade.

Critical Impact

A network-reachable attacker can crash any application that decodes untrusted GIF images using ImageSharp, with no authentication or user interaction required.

Affected Products

  • SixLabors ImageSharp versions prior to 2.1.9 (2.x branch)
  • SixLabors ImageSharp versions prior to 3.1.5 (3.x branch)
  • Applications and services embedding the SixLabors.ImageSharp NuGet package for GIF processing

Discovery Timeline

  • 2024-07-22 - CVE-2024-41131 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-41131

Vulnerability Analysis

The vulnerability resides in src/ImageSharp/Formats/Gif/LzwDecoder.cs, the component responsible for decompressing Lempel-Ziv-Welch (LZW) encoded GIF image data. The decoder failed to enforce the GIF specification limit of 12 bits for LZW codes. By supplying a malformed GIF that drives the code size beyond this boundary, an attacker forces the decoder to write past the bounds of its internal fixed-size buffers. The result is memory corruption that crashes the hosting process. Because ImageSharp is commonly used in web servers, document processing pipelines, and SaaS image upload features, the attack surface is reachable over the network through standard image upload functionality.

Root Cause

The decoder did not validate the LZW code size against the GIF format's hard ceiling of 12 bits. Without this check, attacker-controlled code lengths drove array indices beyond allocated buffer sizes, producing an out-of-bounds write classified as [CWE-787].

Attack Vector

An unauthenticated remote attacker uploads or otherwise submits a crafted GIF to any endpoint that invokes ImageSharp's GIF decoder. No user interaction is required beyond the server-side image processing. The outcome is a process crash and denial of service for downstream consumers.

text
     /// </summary>
     private const int MaxStackSize = 4096;
 
+    /// <summary>
+    /// The maximum bits for a lzw code.
+    /// </summary>
+    private const int MaximumLzwBits = 12;
+
     /// <summary>
     /// The null code.
     /// </summary>

Source: GitHub Commit 9dda64a8 — LzwDecoder.cs patch

The patch introduces a MaximumLzwBits constant set to 12, which the decoder uses to bound code size and prevent writes outside the LZW prefix and suffix tables.

Detection Methods for CVE-2024-41131

Indicators of Compromise

  • Unexpected crashes or unhandled exceptions in .NET processes that perform GIF decoding through SixLabors.ImageSharp
  • Repeated process restarts of image processing workers shortly after receiving GIF uploads
  • Stack traces referencing LzwDecoder or GifDecoderCore in application logs

Detection Strategies

  • Inventory all .NET applications and container images for the SixLabors.ImageSharp package and compare resolved versions against 2.1.9 and 3.1.5.
  • Use software composition analysis (SCA) tools to flag vulnerable SixLabors.ImageSharp versions in build artifacts and dependency manifests.
  • Monitor upload endpoints for GIF files that produce decoder exceptions and correlate with source IPs for repeat behavior.

Monitoring Recommendations

  • Alert on abnormal restart rates or crash dumps from image processing services and worker pools.
  • Log MIME type, file size, and decode duration for inbound images to identify outlier GIF submissions.
  • Capture and review unhandled exceptions originating from the SixLabors.ImageSharp.Formats.Gif namespace.

How to Mitigate CVE-2024-41131

Immediate Actions Required

  • Upgrade SixLabors.ImageSharp to version 3.1.5 for 3.x deployments or 2.1.9 for 2.x deployments.
  • Rebuild and redeploy all container images, serverless functions, and application binaries that statically reference the vulnerable package.
  • Restrict and rate-limit untrusted image uploads until patched builds are in production.

Patch Information

The fix is delivered in commits 9dda64a8 and a1f28797, corresponding to pull requests #2754 and #2756. Full advisory details are published as GHSA-63p8-c4ww-9cg7. Upgrade to ImageSharp 3.1.5 or 2.1.9 to remediate.

Workarounds

  • Disable GIF decoding in application configuration where the format is not required by removing the GIF decoder from the configured image formats.
  • Validate image format and structural integrity using an isolated sandbox or sidecar service before passing files to ImageSharp.
  • Run image processing in a hardened, restartable worker process so a crash does not impact the broader application.
bash
# Update the vulnerable package in a .NET project
dotnet add package SixLabors.ImageSharp --version 3.1.5

# Verify the installed version
dotnet list package | grep SixLabors.ImageSharp

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechSixlabors Imagesharp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.52%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • GitHub Pull Request #2754

  • GitHub Pull Request #2756
  • Vendor Resources
  • GitHub Commit 9dda64a8

  • GitHub Commit a1f28797

  • GitHub Security Advisory GHSA-63p8-c4ww-9cg7
  • Related CVEs
  • CVE-2025-27598: Sixlabors ImageSharp DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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