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-2025-43961

CVE-2025-43961: LibRaw Out-of-Bounds Read Vulnerability

CVE-2025-43961 is an out-of-bounds read vulnerability in LibRaw's Fujifilm tag parser that could allow attackers to access unauthorized memory. This post covers the technical details, affected versions, and mitigation.

Published: March 18, 2026

CVE-2025-43961 Overview

CVE-2025-43961 is an out-of-bounds read vulnerability discovered in LibRaw, a widely-used library for reading RAW image files from digital cameras. The vulnerability exists in metadata/tiff.cpp within the Fujifilm 0xf00c tag parser. When processing specially crafted RAW image files, the parser fails to properly validate buffer boundaries, allowing attackers to read memory beyond allocated bounds. This can lead to sensitive information disclosure or application crashes.

Critical Impact

This vulnerability can be exploited remotely without authentication by tricking users into processing malicious RAW image files, potentially exposing sensitive memory contents or causing denial of service through application crashes.

Affected Products

  • LibRaw versions prior to 0.21.4
  • Applications and software utilizing LibRaw for RAW image processing
  • Linux distributions including Debian that ship vulnerable LibRaw packages

Discovery Timeline

  • 2025-02-05 - Security fix committed by Alex Tutubalin
  • 2025-04-21 - CVE CVE-2025-43961 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-43961

Vulnerability Analysis

This vulnerability represents a classic out-of-bounds read condition (CWE-125) in the LibRaw image processing library. The flaw resides in the Fujifilm white balance table parsing functionality, specifically when handling the 0xf00c tag in TIFF metadata structures. The parser calculates buffer offsets using values derived from image header data without adequate bounds checking, enabling reads past allocated buffer boundaries.

The vulnerability can be exploited remotely through network-accessible applications that process user-supplied RAW image files. No authentication or user privileges are required for exploitation, making this particularly dangerous for web applications, image galleries, and content management systems that automatically process uploaded images.

Root Cause

The root cause lies in insufficient validation of array indices and computed buffer sizes in the Fujifilm white balance (WB) table parsing code. When parsing the 0xf00c tag, the library reads header values that determine array dimensions (head[1], head[2], head[3], head[4]). These values are multiplied to compute buffer sizes without checking whether the resulting products exceed reasonable limits, leading to potential one-off read errors and out-of-bounds memory access.

Attack Vector

The attack vector is network-based, requiring an attacker to craft a malicious RAW image file with specially manipulated Fujifilm metadata tags. When a vulnerable application processes this file—whether through direct file upload, email attachment processing, or automated image indexing—the out-of-bounds read is triggered. The attacker does not require any prior authentication or special privileges, making this vulnerability accessible for exploitation in any context where LibRaw processes untrusted image data.

cpp
// Security patch - Added bounds validation in src/decoders/load_mfbacks.cpp
       fseek(ifp, off_412, SEEK_SET);
       for (i = 0; i < 9; i++)
         head[i] = get4() & 0x7fff;
	  unsigned w0 = head[1] * head[3], w1 = head[2] * head[4];
	  if (w0 > 10240000 || w1 > 10240000)
		  throw LIBRAW_EXCEPTION_ALLOC;
       yval[0] = (float *)calloc(head[1] * head[3] + head[2] * head[4], 6);
       yval[1] = (float *)(yval[0] + head[1] * head[3]);
       xval[0] = (ushort *)(yval[1] + head[2] * head[4]);

Source: GitHub Commit

Detection Methods for CVE-2025-43961

Indicators of Compromise

  • Unexpected application crashes or segmentation faults when processing RAW image files, particularly Fujifilm formats
  • Abnormal memory access patterns or memory dump events associated with image processing operations
  • High volume of RAW image uploads from suspicious sources targeting image processing endpoints
  • Application logs showing LibRaw exceptions or errors related to TIFF metadata parsing

Detection Strategies

  • Implement file integrity monitoring on LibRaw library files to detect unauthorized modifications
  • Deploy memory protection mechanisms (ASLR, DEP/NX) to limit exploitability of out-of-bounds reads
  • Monitor application behavior for abnormal memory access patterns during image processing operations
  • Utilize vulnerability scanners to identify LibRaw versions prior to 0.21.4 across the environment

Monitoring Recommendations

  • Enable verbose logging for image processing applications to capture parsing errors and exceptions
  • Implement network traffic analysis to detect unusually large or malformed RAW image file transfers
  • Set up alerting for repeated crashes or restarts of services that utilize LibRaw for image processing
  • Monitor for unusual process memory access patterns using endpoint detection and response (EDR) solutions

How to Mitigate CVE-2025-43961

Immediate Actions Required

  • Upgrade LibRaw to version 0.21.4 or later immediately across all affected systems
  • Temporarily disable automatic processing of untrusted RAW image files if patching cannot be performed immediately
  • Review and audit all applications and services that depend on LibRaw for image processing
  • Implement input validation to filter or quarantine RAW files from untrusted sources until patching is complete

Patch Information

The vulnerability has been addressed in LibRaw version 0.21.4. The fix introduces explicit bounds checking for computed buffer sizes in the Fujifilm white balance table parsing code, throwing a LIBRAW_EXCEPTION_ALLOC exception when calculated dimensions exceed 10,240,000 elements. The patch is available through the official LibRaw 0.21.4 release and the GitHub commit 66fe663. Debian users should refer to the Debian LTS Security Notice for distribution-specific updates.

Workarounds

  • Restrict image processing to trusted file sources only until the patch can be applied
  • Implement sandboxing for image processing applications to limit the impact of potential exploitation
  • Use container isolation for services that handle RAW image processing from external sources
  • Deploy web application firewalls (WAF) with file type validation to block suspicious RAW uploads
bash
# Configuration example - Check and update LibRaw version on Linux systems
# Check current LibRaw version
pkg-config --modversion libraw

# Update via package manager (Debian/Ubuntu)
sudo apt update && sudo apt upgrade libraw-dev libraw20

# Verify updated version (should be 0.21.4 or higher)
pkg-config --modversion libraw

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechLibraw

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.31%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • LibRaw 0.21.4 Release Announcement

  • Debian LTS Security Notice
  • Vendor Resources
  • GitHub Commit Log

  • GitHub Version Comparison
  • Related CVEs
  • CVE-2025-43964: LibRaw Tag Processing Vulnerability

  • CVE-2026-5342: LibRaw RCE Vulnerability

  • CVE-2026-5318: LibRaw JPEG DHT Parser RCE Vulnerability

  • CVE-2025-43962: LibRaw 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