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-2023-46407

CVE-2023-46407: FFmpeg Buffer Overflow Vulnerability

CVE-2023-46407 is a buffer overflow vulnerability in FFmpeg involving an out of bounds read in the read_vlc_prefix() function. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 4, 2026

CVE-2023-46407 Overview

CVE-2023-46407 is an Out-of-Bounds Read vulnerability discovered in FFmpeg, the widely-used open-source multimedia framework. The vulnerability exists in the read_vlc_prefix() function within the JPEG XL parser component (libavcodec/jpegxl_parser.c), where improper handling of the dist->alphabet_size variable can lead to reading memory beyond allocated buffer boundaries.

Critical Impact

Successful exploitation of this vulnerability could allow an attacker to read sensitive information from memory by crafting a malicious media file, potentially leading to information disclosure when a user processes the file with an affected FFmpeg version.

Affected Products

  • FFmpeg versions prior to commit bf814387f42e9b0dea9d75c03db4723c88e7d962
  • FFmpeg 6.1 and earlier releases without the security patch
  • Applications and services utilizing vulnerable FFmpeg libraries for media processing

Discovery Timeline

  • October 27, 2023 - CVE-2023-46407 published to NVD
  • August 11, 2025 - Last updated in NVD database

Technical Details for CVE-2023-46407

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-bounds Read), affecting FFmpeg's JPEG XL parser implementation. The flaw occurs within the read_vlc_prefix() function where the dist->alphabet_size variable is used without proper validation, allowing read operations to access memory locations outside the intended buffer boundaries.

The local attack vector requires user interaction—typically tricking a victim into opening a specially crafted media file. While the vulnerability does not allow code execution or data modification, it enables unauthorized disclosure of potentially sensitive memory contents, which could include cryptographic keys, authentication tokens, or other process data residing in adjacent memory regions.

Root Cause

The root cause stems from an uninitialized VLC (Variable Length Code) structure in the JPEG XL parser. The level1_vlc variable was not properly initialized before use, leading to undefined behavior when the dist->alphabet_size variable referenced memory locations. This regression introduced an out-of-bounds read condition that could be triggered when parsing malformed JPEG XL content.

Attack Vector

An attacker can exploit this vulnerability through the following attack flow:

  1. Craft Malicious Media File: Create a specially crafted JPEG XL or media file that triggers the vulnerable code path in the VLC prefix reading function
  2. Social Engineering: Distribute the malicious file through email attachments, web downloads, or media streaming services
  3. Victim Interaction: When the victim opens or processes the file using FFmpeg or any application built with vulnerable FFmpeg libraries
  4. Memory Disclosure: The out-of-bounds read occurs, potentially exposing sensitive process memory to the attacker
c
     int repeat_count_prev = 0, repeat_count_zero = 0, prev = 8;
     int total_code = 0, len, hskip, num_codes = 0, ret;
 
-    VLC level1_vlc;
+    VLC level1_vlc = { 0 };
 
     if (dist->alphabet_size == 1) {
         dist->vlc.bits = 0;

Source: GitHub Commit Update

The patch initializes the level1_vlc structure to zero, preventing the out-of-bounds read by ensuring all fields have known, safe values before any operations are performed.

Detection Methods for CVE-2023-46407

Indicators of Compromise

  • Unexpected crashes or segmentation faults in FFmpeg-based applications when processing JPEG XL files
  • Memory access violations logged by system monitoring tools during media file processing
  • Unusual memory read patterns detected by runtime memory sanitizers (ASan, Valgrind)

Detection Strategies

  • Deploy file integrity monitoring to detect suspicious media files being processed by FFmpeg instances
  • Implement application-level logging to capture FFmpeg parsing errors and abnormal terminations
  • Use memory safety tools in development and staging environments to identify out-of-bounds access attempts
  • Monitor for unusual file types or malformed headers in media processing pipelines

Monitoring Recommendations

  • Enable verbose logging in applications using FFmpeg to capture detailed error information during media processing
  • Configure endpoint detection solutions to alert on repeated crashes of FFmpeg processes
  • Implement sandboxing for media processing workflows to contain potential exploitation attempts
  • Review application logs for patterns indicating attempts to trigger parser vulnerabilities

How to Mitigate CVE-2023-46407

Immediate Actions Required

  • Update FFmpeg to a version containing commit bf814387f42e9b0dea9d75c03db4723c88e7d962 or later
  • Audit all applications and services using FFmpeg libraries and schedule updates accordingly
  • Implement input validation to filter potentially malicious media files before processing
  • Consider temporarily disabling JPEG XL support if immediate patching is not possible

Patch Information

The vulnerability has been addressed in FFmpeg through commit bf814387f42e9b0dea9d75c03db4723c88e7d962. The fix properly initializes the level1_vlc VLC structure to zero before use, eliminating the out-of-bounds read condition.

Official patch resources:

  • GitHub Commit Update
  • FFmpeg Patch Submission (October 13, 2023)
  • FFmpeg Patch Submission (October 15, 2023)

Workarounds

  • Restrict media file processing to trusted sources until patches can be applied
  • Implement sandboxed execution environments for FFmpeg processing tasks to limit potential impact
  • Use network segmentation to isolate media processing systems from sensitive data repositories
  • Deploy web application firewalls with rules to inspect and block potentially malicious media uploads
bash
# Verify FFmpeg version and check if patch is applied
ffmpeg -version

# Check if the vulnerable commit is present in your build
git log --oneline | grep bf814387f42e9b0dea9d75c03db4723c88e7d962

# Compile FFmpeg from source with the latest security patches
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
./configure --enable-gpl --enable-version3
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
  • TypeBuffer Overflow

  • Vendor/TechFfmpeg

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-125
  • Vendor Resources
  • GitHub Commit Update

  • FFmpeg Patch Submission

  • FFmpeg Patch Submission
  • Related CVEs
  • CVE-2024-7055: FFmpeg Buffer Overflow Vulnerability

  • CVE-2025-0518: FFmpeg Buffer Overflow Vulnerability

  • CVE-2025-1594: FFmpeg Buffer Overflow Vulnerability

  • CVE-2021-38171: FFmpeg Buffer Overflow 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