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-2020-35965

CVE-2020-35965: FFmpeg Buffer Overflow Vulnerability

CVE-2020-35965 is a buffer overflow flaw in FFmpeg's libavcodec/exr.c that triggers out-of-bounds writes during frame decoding. This article covers the technical details, affected versions, security impact, and mitigation.

Published: March 4, 2026

CVE-2020-35965 Overview

CVE-2020-35965 is an out-of-bounds write vulnerability in FFmpeg 4.3.1, specifically within the decode_frame function in libavcodec/exr.c. The flaw arises from incorrect calculations that determine when to perform memset zero operations during EXR (OpenEXR) image decoding. This memory corruption vulnerability can be triggered by processing a specially crafted EXR file, potentially leading to denial of service conditions.

Critical Impact

Attackers can exploit this out-of-bounds write vulnerability by providing maliciously crafted EXR image files to applications using the vulnerable FFmpeg library, causing application crashes and denial of service.

Affected Products

  • FFmpeg 4.3.1 and potentially earlier versions
  • Debian Linux 9.0 (Stretch)
  • Debian Linux 10.0 (Buster)

Discovery Timeline

  • 2021-01-04 - CVE-2020-35965 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-35965

Vulnerability Analysis

The vulnerability exists in the EXR image decoder component of FFmpeg's libavcodec library. The decode_frame function in exr.c contains flawed logic for determining when memory initialization operations should occur. Specifically, the calculations controlling memset zero operations contain errors that can result in write operations occurring outside the bounds of allocated memory buffers.

When FFmpeg processes an EXR image file, the decoder must handle various image attributes and pixel data. The vulnerable code path incorrectly computes buffer boundaries, allowing an attacker-controlled input file to trigger memory writes past the intended buffer limits. This vulnerability was identified through fuzzing efforts and reported via the Chromium Issue #26532.

Root Cause

The root cause of CVE-2020-35965 is improper boundary condition checking in the EXR decoder's frame processing logic. The code responsible for zeroing out portions of the frame buffer uses incorrect offset or length calculations, which can be manipulated through specific values in a crafted EXR file header. This leads to the memset function writing beyond allocated heap memory, classified as CWE-787 (Out-of-bounds Write).

Attack Vector

The attack vector for this vulnerability is network-based, requiring no privileges or user interaction beyond the victim processing a malicious EXR file. An attacker could exploit this vulnerability through several scenarios:

  1. Embedding a malicious EXR file on a web page where FFmpeg-based applications process images
  2. Sending crafted EXR files via email or file sharing platforms
  3. Uploading malicious content to media processing services that utilize FFmpeg

The vulnerability can be triggered when any application using the vulnerable FFmpeg library attempts to decode a specially crafted EXR image. The out-of-bounds write operation corrupts heap memory, which typically results in a crash (denial of service) and could potentially be leveraged for more severe exploitation depending on the memory layout and application context.

Detection Methods for CVE-2020-35965

Indicators of Compromise

  • Unexpected application crashes when processing EXR image files
  • Segmentation faults or memory access violations in FFmpeg-dependent applications
  • Abnormal memory consumption patterns during media file processing
  • Core dumps indicating heap corruption in libavcodec components

Detection Strategies

  • Monitor for crashes in applications using FFmpeg with stack traces pointing to libavcodec/exr.c or the decode_frame function
  • Implement file-type validation and sanitization for EXR files before processing
  • Deploy application-level monitoring to detect unusual behavior during media decoding operations
  • Use memory safety tools (AddressSanitizer, Valgrind) in development and testing environments to catch out-of-bounds writes

Monitoring Recommendations

  • Enable crash reporting and centralized logging for media processing services
  • Monitor system logs for segmentation faults in processes utilizing FFmpeg libraries
  • Implement network traffic analysis to detect potentially malicious media file transfers
  • Track FFmpeg version deployments across infrastructure to identify vulnerable installations

How to Mitigate CVE-2020-35965

Immediate Actions Required

  • Update FFmpeg to a patched version that includes the security fixes
  • Audit systems for applications and services that depend on FFmpeg for media processing
  • Consider temporarily disabling EXR format support if not required for business operations
  • Implement input validation to reject potentially malicious EXR files at application boundaries

Patch Information

FFmpeg has released patches to address this vulnerability. The fixes are available in the following commits:

  • FFmpeg Commit Update #3e5959b
  • FFmpeg Commit Update #b0a8b40

For Debian-based systems, security updates are available:

  • Debian LTS Announcement
  • Debian Security Advisory DSA-4990

Gentoo users should refer to Gentoo GLSA 2021-05-24 for update instructions.

Workarounds

  • Disable EXR codec support in FFmpeg configuration if the format is not required
  • Implement strict input file validation and reject files from untrusted sources
  • Run FFmpeg-based processing in sandboxed environments with limited permissions
  • Apply defense-in-depth measures including ASLR and stack canaries to mitigate exploitation impact
bash
# Verify FFmpeg version and check for vulnerability
ffmpeg -version | head -n 1

# For Debian/Ubuntu systems, update FFmpeg packages
sudo apt update && sudo apt upgrade ffmpeg libavcodec58

# Rebuild FFmpeg without EXR support if not needed
./configure --disable-decoder=exr
make && 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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.62%

  • 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
  • Chromium Issue #26532

  • Debian LTS Announcement

  • Gentoo GLSA 2021-05-24

  • Debian Security Advisory DSA-4990
  • Vendor Resources
  • FFmpeg Commit Update #3e5959b

  • FFmpeg Commit Update #b0a8b40
  • Related CVEs
  • CVE-2026-40962: FFmpeg Buffer Overflow Vulnerability

  • CVE-2025-63757: FFmpeg Buffer Overflow Vulnerability

  • CVE-2024-7055: FFmpeg Buffer Overflow Vulnerability

  • CVE-2025-0518: FFmpeg Buffer Overflow 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