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

CVE-2023-1999: Libwebp Use After Free Vulnerability

CVE-2023-1999 is a use after free and double free vulnerability in Webmproject Libwebp that occurs in the ApplyFiltersAndEncode() function. This post covers the technical details, affected versions, impact, and mitigation.

Published: January 28, 2026

CVE-2023-1999 Overview

CVE-2023-1999 is a use-after-free and double free vulnerability discovered in libwebp, the WebP image format library maintained by the WebM Project. The flaw exists within the ApplyFiltersAndEncode() function, where an attacker can trigger improper memory management through a carefully crafted sequence of operations. When the function loops through encoding operations, it frees best.bw and assigns best = trial pointer. A subsequent loop iteration can return 0 due to an out-of-memory error in the VP8 encoder, leaving the pointer still assigned to trial. This results in a double free condition when memory cleanup is attempted.

Critical Impact

This vulnerability can be exploited remotely over the network without authentication to cause denial of service conditions through memory corruption. The widespread use of libwebp across browsers, image processing tools, and applications significantly amplifies the potential impact.

Affected Products

  • webmproject libwebp (all vulnerable versions)

Discovery Timeline

  • 2023-06-20 - CVE-2023-1999 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-1999

Vulnerability Analysis

This vulnerability combines two related memory safety issues: use-after-free (CWE-416) and double free (CWE-415). The root of the problem lies in the image encoding pipeline within libwebp, specifically in how the ApplyFiltersAndEncode() function manages memory during iterative encoding attempts.

During the encoding process, the function attempts to find the optimal encoding configuration by iterating through different filter combinations. Each iteration allocates memory for trial encoding results. When best.bw is freed and the best = trial pointer assignment occurs, the code assumes subsequent operations will succeed. However, if an out-of-memory condition occurs in the VP8 encoder during a later iteration, the error handling path does not properly account for the pointer state, leading to an attempt to free memory that has already been freed or is in an invalid state.

The network attack vector allows this vulnerability to be triggered by processing a malicious WebP image received from an untrusted source. Since libwebp is widely integrated into web browsers, image viewers, and content management systems, an attacker could potentially deliver a crafted image through various channels including web pages, email attachments, or file uploads.

Root Cause

The vulnerability stems from improper memory lifecycle management in the ApplyFiltersAndEncode() function. The code fails to properly track the ownership and state of memory allocations when transitioning between encoding trial iterations. Specifically, after freeing best.bw and reassigning the pointer, the error handling path for VP8 encoder out-of-memory conditions does not properly nullify or track the freed pointer, resulting in a double free when cleanup routines execute.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious WebP image designed to trigger specific memory conditions during the encoding process. The attack requires no authentication or user interaction beyond processing the malicious image. The exploitation flow involves:

  1. Delivering a specially crafted WebP image to a target system
  2. The image triggers the ApplyFiltersAndEncode() function during processing
  3. Memory allocation patterns cause the out-of-memory condition in the VP8 encoder
  4. The double free condition corrupts heap metadata, leading to denial of service

The vulnerability mechanism centers on the memory management within the encoding loop. When the ApplyFiltersAndEncode() function iterates through filter combinations, it manages trial encoding buffers. The flaw occurs when best.bw is freed and the pointer is reassigned without proper tracking. A subsequent VP8 encoder failure triggers cleanup code that attempts to free memory already released, causing heap corruption. For detailed technical information, refer to the Chromium WebP Library repository.

Detection Methods for CVE-2023-1999

Indicators of Compromise

  • Unexpected application crashes during WebP image processing with heap corruption signatures
  • AddressSanitizer or similar memory debugging tools reporting double free or use-after-free errors in libwebp functions
  • Anomalous memory allocation patterns in applications processing WebP images
  • Core dumps showing corruption in ApplyFiltersAndEncode() or related VP8 encoder functions

Detection Strategies

  • Deploy memory sanitizers (ASan, MSan) in development and testing environments to detect memory corruption issues early
  • Monitor application logs for crashes related to image processing, particularly those involving WebP encoding operations
  • Implement file integrity monitoring for libwebp library files to detect unauthorized modifications
  • Use network-based intrusion detection to identify potential delivery of malformed WebP images

Monitoring Recommendations

  • Enable crash reporting for applications using libwebp to identify potential exploitation attempts
  • Monitor system resource usage for abnormal memory consumption patterns during image processing
  • Implement logging for image processing failures, particularly those returning out-of-memory errors
  • Track libwebp version information across deployed systems to ensure vulnerability remediation

How to Mitigate CVE-2023-1999

Immediate Actions Required

  • Identify all systems and applications using vulnerable versions of libwebp
  • Update libwebp to the latest patched version available from the WebM Project
  • Review and update all applications that bundle or statically link libwebp
  • Consider temporarily disabling WebP image processing in critical systems until patches are applied

Patch Information

Organizations should update libwebp to the latest available version from the official WebM Project repository. The fix addresses the memory management issues in the ApplyFiltersAndEncode() function by properly tracking pointer states and preventing double free conditions. Refer to the Chromium WebP Library for the latest source code and patches. Linux distribution users should consult their vendor's security advisories, such as the Gentoo GLSA 202309-05, for distribution-specific patch information.

Workarounds

  • Implement input validation to reject potentially malicious WebP images before processing
  • Use process isolation or sandboxing for image processing operations to contain potential exploitation
  • Consider using alternative image formats in high-security environments until patches are deployed
  • Deploy web application firewalls configured to inspect and filter uploaded image content
bash
# Check installed libwebp version on Linux systems
pkg-config --modversion libwebp

# Example: Verify libwebp version on Debian/Ubuntu
dpkg -l | grep libwebp

# Example: Update libwebp on Debian/Ubuntu
sudo apt update && sudo apt upgrade libwebp-dev libwebp7

# Example: Update libwebp on Gentoo (per GLSA 202309-05)
emerge --sync && emerge -uDN @world

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLibwebp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.38%

  • 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-416

  • CWE-415
  • Technical References
  • Chromium WebP Library

  • Gentoo GLSA 202309-05
  • Related CVEs
  • CVE-2020-36329: Libwebp Use-After-Free Vulnerability

  • CVE-2020-36331: Webmproject Libwebp DOS Vulnerability

  • CVE-2020-36330: Libwebp Information Disclosure Flaw

  • CVE-2020-36328: Libwebp 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