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

CVE-2020-35538: Libjpeg-turbo Use-After-Free Vulnerability

CVE-2020-35538 is a use-after-free vulnerability in Libjpeg-turbo that allows crafted input files to trigger null pointer dereference in jcopy_sample_rows(). This article covers technical details, affected versions, and mitigations.

Published: March 4, 2026

CVE-2020-35538 Overview

A null pointer dereference vulnerability exists in libjpeg-turbo, specifically within the jcopy_sample_rows() function. When processing a specially crafted input file, the application fails to properly validate pointer references before use, leading to a crash condition. This vulnerability can be triggered by an attacker who provides a malicious JPEG image file to an application that uses the libjpeg-turbo library for image processing.

Critical Impact

A crafted input file can cause application crashes through null pointer dereference, resulting in denial of service for applications relying on libjpeg-turbo for JPEG image processing.

Affected Products

  • libjpeg-turbo version 2.0.5
  • Applications and systems using vulnerable libjpeg-turbo libraries
  • Image processing pipelines incorporating libjpeg-turbo

Discovery Timeline

  • 2022-08-31 - CVE CVE-2020-35538 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-35538

Vulnerability Analysis

This vulnerability is classified as CWE-476 (NULL Pointer Dereference). The flaw resides in the jcopy_sample_rows() function within libjpeg-turbo, which is responsible for copying sample rows during JPEG image processing operations. When the library encounters a malformed or specially crafted JPEG file, it fails to properly validate that required pointers are initialized before dereferencing them.

The attack requires local access and user interaction, as the victim must process a malicious image file. The vulnerability does not impact confidentiality or integrity but causes high availability impact through application crashes. This makes it particularly relevant for applications that process user-supplied images, such as image viewers, web browsers, content management systems, and image conversion utilities.

Root Cause

The root cause of CVE-2020-35538 is insufficient null pointer validation in the jcopy_sample_rows() function. When processing certain malformed JPEG inputs, the code path leads to an attempt to dereference a pointer that has not been properly initialized or has been set to null due to earlier processing failures. The library lacks defensive checks to ensure pointer validity before the copy operation proceeds.

Attack Vector

The attack vector is local, requiring an attacker to deliver a malicious JPEG file to the target system. The exploit scenario involves:

  1. An attacker crafts a specially malformed JPEG image file designed to trigger the vulnerable code path in jcopy_sample_rows()
  2. The malicious file is delivered to a victim through various means such as email attachments, web downloads, or file sharing
  3. When the victim opens or processes the image using an application that relies on libjpeg-turbo, the null pointer dereference occurs
  4. The application crashes, causing denial of service

The vulnerability does not require elevated privileges to exploit, but does require the user to interact with the malicious file. Technical details regarding the specific malformed input characteristics can be found in the GitHub Issue Discussion.

Detection Methods for CVE-2020-35538

Indicators of Compromise

  • Application crashes when processing specific JPEG image files
  • Crash dumps or core files indicating null pointer dereference in jcopy_sample_rows() function
  • Segmentation fault errors in applications using libjpeg-turbo for image processing
  • Repeated crashes in image processing services or applications

Detection Strategies

  • Monitor application logs for segmentation fault or access violation errors related to libjpeg-turbo library functions
  • Implement crash analysis to identify stack traces pointing to jcopy_sample_rows() function
  • Deploy file integrity monitoring to detect potentially malicious JPEG files entering the environment
  • Use software composition analysis (SCA) tools to identify systems running vulnerable libjpeg-turbo version 2.0.5

Monitoring Recommendations

  • Enable verbose logging in applications that process JPEG images to capture crash details
  • Configure system monitoring to alert on repeated application crashes in image processing workflows
  • Implement centralized crash reporting to identify patterns of exploitation attempts
  • Monitor for unusual volumes of JPEG file processing failures

How to Mitigate CVE-2020-35538

Immediate Actions Required

  • Update libjpeg-turbo to a patched version that addresses the null pointer dereference vulnerability
  • Audit systems and applications to identify deployments using libjpeg-turbo version 2.0.5
  • Consider temporarily restricting the processing of untrusted JPEG files in critical applications
  • Review and update any container images or dependencies that include vulnerable libjpeg-turbo versions

Patch Information

The libjpeg-turbo maintainers have addressed this vulnerability through a code fix. The patch is available in the GitHub Commit. Organizations should update to a version of libjpeg-turbo that incorporates this fix (commit hash: 9120a247436e84c0b4eea828cb11e8f665fcde30).

Workarounds

  • Validate and sanitize JPEG files using alternative tools before processing with libjpeg-turbo
  • Implement application-level input validation to reject malformed JPEG files
  • Sandbox image processing operations to limit the impact of potential crashes
  • Deploy process restart mechanisms to automatically recover from denial of service conditions

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/TechLibjpeg Turbo

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • GitHub Issue Discussion
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2023-2804: Libjpeg-turbo 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