The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-22860

CVE-2024-22860: FFmpeg Integer Overflow RCE Vulnerability

CVE-2024-22860 is an integer overflow RCE vulnerability in FFmpeg affecting the JPEG XL Animation decoder. Attackers can exploit this flaw to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2024-22860 Overview

CVE-2024-22860 is an integer overflow vulnerability affecting FFmpeg versions before n6.1. The vulnerability exists in the jpegxl_anim_read_packet component within the JPEG XL Animation decoder, allowing remote attackers to execute arbitrary code through specially crafted media files.

Critical Impact

This integer overflow vulnerability enables remote code execution without authentication, potentially allowing attackers to gain complete control over systems processing malicious JPEG XL animation files.

Affected Products

  • FFmpeg versions prior to n6.1
  • Applications and services utilizing vulnerable FFmpeg libraries for JPEG XL animation processing
  • Media processing pipelines incorporating affected FFmpeg components

Discovery Timeline

  • 2024-01-27 - CVE-2024-22860 published to NVD
  • 2025-08-11 - Last updated in NVD database

Technical Details for CVE-2024-22860

Vulnerability Analysis

The vulnerability stems from an integer overflow condition (CWE-190) in the JPEG XL animation decoder component of FFmpeg. When processing JPEG XL animation files, the jpegxl_anim_read_packet function fails to properly validate that the file size fits within the bounds of an integer argument. This oversight allows attackers to supply maliciously crafted files that trigger arithmetic overflow conditions.

The integer overflow occurs when the avio_size() function returns a value larger than INT_MAX, which is subsequently used in size calculations without proper bounds checking. This can lead to heap buffer overflows, memory corruption, and ultimately arbitrary code execution in the context of the process handling the malicious media file.

Root Cause

The root cause is insufficient validation of the size variable returned by avio_size() in libavformat/jpegxl_anim_dec.c. The function failed to verify that the file size could safely fit within the integer type used for subsequent operations, allowing values exceeding INT_MAX to cause integer overflow conditions during memory allocation and buffer operations.

Attack Vector

This vulnerability is exploitable remotely over a network without requiring authentication or user interaction. An attacker can craft a malicious JPEG XL animation file with specially constructed size parameters. When a vulnerable FFmpeg instance processes this file—whether through direct command-line usage, web application processing, or streaming services—the integer overflow triggers, potentially leading to arbitrary code execution.

c
     size = avio_size(pb);
     if (size < 0)
         return size;
+    if (size > INT_MAX)
+        return AVERROR(EDOM);
     if (size == 0)
         size = 4096;
 

Source: GitHub FFmpeg Commit d2e8974

The patch adds a critical bounds check to ensure the size value does not exceed INT_MAX before proceeding with buffer operations, returning an AVERROR(EDOM) domain error if the check fails.

Detection Methods for CVE-2024-22860

Indicators of Compromise

  • Unusual crash patterns in FFmpeg processes when handling JPEG XL animation files
  • Unexpected memory allocation failures or out-of-memory conditions during media processing
  • Suspicious JPEG XL files with abnormally large reported sizes in file metadata
  • Evidence of heap corruption or buffer overflow in FFmpeg crash dumps

Detection Strategies

  • Monitor FFmpeg process behavior for anomalous crashes or unexpected terminations during JPEG XL processing
  • Implement file integrity checks to identify JPEG XL files with manipulated size headers
  • Deploy runtime application self-protection (RASP) to detect integer overflow exploitation attempts
  • Use SentinelOne behavioral AI to identify post-exploitation activity following potential code execution

Monitoring Recommendations

  • Enable detailed logging for all FFmpeg operations, particularly those involving JPEG XL format handling
  • Set up alerting for repeated FFmpeg process failures processing files from untrusted sources
  • Monitor network traffic for incoming JPEG XL files from suspicious sources
  • Implement file scanning for known malicious JPEG XL samples targeting this vulnerability

How to Mitigate CVE-2024-22860

Immediate Actions Required

  • Upgrade FFmpeg to version n6.1 or later immediately across all affected systems
  • Audit all systems and applications that embed or depend on FFmpeg for JPEG XL processing capabilities
  • Implement network-level filtering for JPEG XL files from untrusted sources until patching is complete
  • Review application logs for evidence of exploitation attempts prior to patching

Patch Information

The vulnerability has been addressed in FFmpeg commit d2e8974699a9e35cc1a926bf74a972300d629cd5. This patch adds validation to ensure file sizes do not exceed INT_MAX before proceeding with buffer operations. Organizations should update to FFmpeg version n6.1 or apply the specific commit to their FFmpeg builds. The fix is available in the official FFmpeg repository.

Workarounds

  • Disable JPEG XL animation decoding in FFmpeg configurations where this format is not required
  • Implement input validation at the application layer to reject JPEG XL files with suspicious size characteristics
  • Use sandboxing or containerization to isolate FFmpeg processes handling untrusted media files
  • Apply address space layout randomization (ASLR) and other exploit mitigations to reduce successful exploitation impact
bash
# Configuration example - Rebuild FFmpeg without JPEG XL support as temporary mitigation
./configure --disable-decoder=jpegxl
make && make install

# Alternatively, verify your FFmpeg version includes the fix
ffmpeg -version | grep -E "^ffmpeg version"
# Ensure version is n6.1 or later

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFfmpeg

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • Chromium OSS-Fuzz Issue #61991
  • Vendor Resources
  • GitHub FFmpeg Commit d2e8974
  • Related CVEs
  • CVE-2023-47470: FFmpeg Buffer Overflow RCE Vulnerability

  • CVE-2024-22862: FFmpeg Integer Overflow RCE Vulnerability

  • CVE-2021-30123: FFmpeg Buffer Overflow RCE Vulnerability

  • CVE-2025-69693: FFmpeg RV60 Decoder OOB Read Vulnerability
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