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-35366

CVE-2024-35366: FFmpeg Integer Overflow Vulnerability

CVE-2024-35366 is an integer overflow flaw in FFmpeg n6.1.1 affecting the parse_options function in sbgdec.c. This vulnerability allows negative duration values without validation. Learn about technical details and mitigation.

Updated: January 22, 2026

CVE-2024-35366 Overview

CVE-2024-35366 is an Integer Overflow vulnerability affecting FFmpeg n6.1.1. The vulnerability exists in the parse_options function of sbgdec.c within the libavformat module. When parsing certain options, the software does not adequately validate the input, allowing negative duration values to be accepted without proper bounds checking. This flaw can be exploited remotely by an attacker to cause high integrity and availability impacts on affected systems.

Critical Impact

This integer overflow vulnerability in FFmpeg's SBG decoder can be exploited remotely without authentication, potentially leading to data corruption or denial of service conditions in applications processing malicious media files.

Affected Products

  • FFmpeg version 6.1.1
  • Applications and services utilizing FFmpeg libavformat for media processing
  • Systems with vulnerable FFmpeg versions processing untrusted SBG format files

Discovery Timeline

  • 2024-11-29 - CVE-2024-35366 published to NVD
  • 2025-06-03 - Last updated in NVD database

Technical Details for CVE-2024-35366

Vulnerability Analysis

The vulnerability resides in FFmpeg's SBG (Sound Blaster Game) file format decoder, specifically in the parse_options function located in libavformat/sbgdec.c. The core issue stems from inadequate input validation when processing the -L option, which specifies duration values. The function str_to_time() parses user-supplied input and converts it to a duration value, but prior to the patch, no validation was performed to ensure the resulting duration was non-negative.

This oversight allows an attacker to supply crafted SBG files containing negative duration values, which can cause integer overflow conditions when the duration is subsequently used in calculations. The network attack vector indicates that exploitation can occur when FFmpeg processes malicious files received over a network, such as through streaming applications or web services that transcode media.

Root Cause

The root cause is missing bounds checking in the parse_options function within sbgdec.c. When the -L option argument is parsed via str_to_time(), the code only verified that the parsing consumed the expected input string, but failed to validate that the resulting opt_duration value was within acceptable bounds. Negative duration values, which are semantically invalid for time-based operations, were accepted and stored in p->scs.opt_duration, leading to potential integer overflow conditions in subsequent processing.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious SBG file with specially constructed option parameters that result in negative duration values. When FFmpeg processes this file—whether through direct command-line invocation, library API calls, or as part of a larger media processing pipeline—the integer overflow occurs. The network-based attack vector means this can be triggered remotely when applications accept and process untrusted media files from external sources.

c
                case 'L':
                    FORWARD_ERROR(parse_optarg(p, opt, &oarg));
                    r = str_to_time(oarg.s, &p->scs.opt_duration);
-                    if (oarg.e != oarg.s + r) {
+                    if (oarg.e != oarg.s + r || p->scs.opt_duration < 0) {
                        snprintf(p->err_msg, sizeof(p->err_msg),
                                 "syntax error for option -L");
                        return AVERROR_INVALIDDATA;

Source: GitHub FFmpeg Commit

The patch adds a simple but critical check || p->scs.opt_duration < 0 to reject negative duration values and return an AVERROR_INVALIDDATA error, preventing the integer overflow from occurring.

Detection Methods for CVE-2024-35366

Indicators of Compromise

  • Unexpected crashes or abnormal termination in FFmpeg processes when handling SBG files
  • Error logs indicating memory corruption or integer overflow in libavformat operations
  • Anomalous CPU or memory utilization during media processing tasks

Detection Strategies

  • Implement file type validation to identify and scrutinize SBG format files before processing
  • Monitor FFmpeg process behavior for unexpected crashes or resource consumption patterns
  • Deploy application-level logging to capture AVERROR_INVALIDDATA return codes from sbgdec operations
  • Use static analysis tools to identify FFmpeg version 6.1.1 installations across the environment

Monitoring Recommendations

  • Enable verbose logging in FFmpeg-based applications to capture parsing errors
  • Monitor system logs for segmentation faults or memory errors from FFmpeg processes
  • Implement network traffic analysis to detect potentially malicious media file transfers
  • Configure alerting for FFmpeg process terminations with abnormal exit codes

How to Mitigate CVE-2024-35366

Immediate Actions Required

  • Update FFmpeg to a version containing commit 0bed22d597b78999151e3bde0768b7fe763fc2a6 or later
  • Restrict processing of SBG format files from untrusted sources where possible
  • Implement input validation at the application layer before passing files to FFmpeg
  • Consider isolating FFmpeg processing in sandboxed environments to limit impact

Patch Information

FFmpeg has released a security patch addressing this vulnerability. The fix is available in commit 0bed22d597b78999151e3bde0768b7fe763fc2a6. Organizations should update to a patched version by compiling from source with this commit included, or by upgrading to a release version that incorporates the fix. The patch can be reviewed at the FFmpeg GitHub Repository.

Workarounds

  • Disable SBG format support if not required by your use case through FFmpeg compilation flags
  • Implement pre-processing validation to reject SBG files from untrusted sources
  • Use network-level filtering to block or quarantine suspicious media files before processing
  • Deploy containerization to isolate FFmpeg processes and limit potential damage from exploitation
bash
# Verify FFmpeg version and check if vulnerable
ffmpeg -version | grep "ffmpeg version"

# Rebuild FFmpeg from source with the security patch
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
git checkout 0bed22d597b78999151e3bde0768b7fe763fc2a6
./configure --prefix=/usr/local
make -j$(nproc)
sudo make install

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechFfmpeg

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • GitHub Gist Code Snippet

  • GitHub FFmpeg Source Code
  • Vendor Resources
  • GitHub FFmpeg Commit Log
  • Related CVEs
  • CVE-2025-69693: FFmpeg RV60 Decoder OOB Read Vulnerability

  • CVE-2024-35367: FFmpeg Out-of-Bounds Read Vulnerability

  • CVE-2025-12343: FFmpeg TensorFlow Backend DoS Vulnerability

  • CVE-2025-10256: FFmpeg Firequalizer Filter DoS 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