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-2021-3575

CVE-2021-3575: Openjpeg Buffer Overflow Vulnerability

CVE-2021-3575 is a heap-based buffer overflow in Openjpeg's color.c that enables arbitrary code execution via malicious .j2k files. This article covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-3575 Overview

A heap-based buffer overflow vulnerability was discovered in OpenJPEG, specifically in the color.c file at line 379:42 within the sycc420_to_rgb function. This vulnerability is triggered when decompressing a specially crafted .j2k (JPEG 2000) file. An attacker could exploit this flaw to execute arbitrary code with the permissions of the application compiled against the OpenJPEG library.

Critical Impact

This heap overflow vulnerability allows attackers to achieve arbitrary code execution by providing a malicious JPEG 2000 image file, potentially leading to complete system compromise with the privileges of the vulnerable application.

Affected Products

  • UCLouvain OpenJPEG (all affected versions)
  • Red Hat Enterprise Linux 6.0, 7.0, 8.0
  • Fedora 33, 34

Discovery Timeline

  • 2022-03-04 - CVE-2021-3575 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2021-3575

Vulnerability Analysis

This vulnerability (CWE-787: Out-of-bounds Write) exists in the color space conversion functionality of OpenJPEG. The sycc420_to_rgb function is responsible for converting images from the YCbCr 4:2:0 color space to RGB format during JPEG 2000 decompression. Due to improper bounds checking during this conversion process, processing a maliciously crafted .j2k file can trigger a heap-based buffer overflow.

The vulnerability requires local access and user interaction (opening a malicious file), but once triggered, it can result in complete compromise of confidentiality, integrity, and availability of the affected system. Applications that integrate OpenJPEG for image processing—including image viewers, converters, and document processors—are potentially affected.

Root Cause

The root cause of CVE-2021-3575 lies in insufficient validation of buffer boundaries in the sycc420_to_rgb function located in color.c. During the YCbCr 4:2:0 to RGB color space conversion, the function fails to properly verify that write operations remain within allocated heap memory bounds. When processing specially crafted JPEG 2000 files with malformed header data or manipulated color component dimensions, the function writes beyond the allocated buffer, corrupting adjacent heap memory.

Attack Vector

The attack vector for this vulnerability is local, requiring an attacker to convince a user to open a malicious .j2k or JPEG 2000 file. Attack scenarios include:

  1. Email attachment: Sending a malicious .j2k file as an email attachment
  2. Drive-by download: Hosting malicious JPEG 2000 images on websites
  3. Supply chain: Embedding malicious images in documents or archives
  4. File sharing: Distributing malicious images through file-sharing platforms

When a vulnerable application processes the crafted image, the heap overflow occurs during color conversion, potentially allowing the attacker to overwrite critical heap metadata or function pointers, leading to arbitrary code execution.

The vulnerability is triggered in the image decompression pipeline when the sycc420_to_rgb function processes color data. The malicious file contains specially crafted header values that cause the function to miscalculate buffer sizes, resulting in heap corruption during the color space transformation. For detailed technical analysis, refer to the GitHub Issue #1347 and the Red Hat Bug Report.

Detection Methods for CVE-2021-3575

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using OpenJPEG when processing .j2k files
  • Suspicious JPEG 2000 files with anomalous header values or corrupted color component metadata
  • Memory corruption errors logged by applications during image decompression operations
  • Unusual process behavior following the opening of JPEG 2000 image files

Detection Strategies

  • Monitor application crash reports for patterns involving OpenJPEG library components, particularly in color.c or color conversion functions
  • Implement file integrity monitoring to detect suspicious .j2k or .jp2 files with unusual metadata structures
  • Deploy memory protection mechanisms (ASLR, DEP/NX) to detect and mitigate exploitation attempts
  • Use application sandboxing to isolate image processing operations and detect anomalous behavior

Monitoring Recommendations

  • Enable heap protection and memory sanitization in development and testing environments to identify exploitation attempts
  • Monitor system logs for crash dumps referencing OpenJPEG components
  • Implement network-level detection for JPEG 2000 files being transferred, particularly from untrusted sources
  • Review endpoint detection logs for suspicious process spawning following image file access

How to Mitigate CVE-2021-3575

Immediate Actions Required

  • Update OpenJPEG to the latest patched version available from your distribution
  • Apply security updates from Red Hat, Fedora, Debian, or Ubuntu as applicable to your environment
  • Restrict the processing of JPEG 2000 files from untrusted sources until patches are applied
  • Consider disabling automatic image preview features in applications that use OpenJPEG

Patch Information

Security patches addressing CVE-2021-3575 have been released by multiple Linux distributions. Administrators should apply updates from their respective package managers:

  • Fedora: Updates available via Fedora package announcements for Fedora 33 and 34
  • Red Hat Enterprise Linux: Patches available for RHEL 6.0, 7.0, and 8.0 through the Red Hat security advisory system
  • Ubuntu: Security updates documented in the Ubuntu CVE-2021-3575 advisory
  • Debian: Long-term support patches documented in the Debian LTS Announcement

Workarounds

  • If patching is not immediately possible, consider using alternative JPEG 2000 processing libraries temporarily
  • Implement strict input validation for JPEG 2000 files before processing with OpenJPEG
  • Use application sandboxing (e.g., containers, seccomp profiles) to limit the impact of potential exploitation
  • Disable or restrict JPEG 2000 file handling in web-facing or email-processing applications
bash
# Example: Update OpenJPEG on Fedora/RHEL systems
sudo dnf update openjpeg2 openjpeg2-devel

# Example: Update OpenJPEG on Debian/Ubuntu systems
sudo apt update && sudo apt upgrade libopenjp2-7

# Verify installed version
opj_decompress -h 2>&1 | head -1

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechOpenjpeg

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.33%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • Red Hat Bug Report

  • GitHub Issue #1347

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Ubuntu CVE-2021-3575

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2026-6192: OpenJPEG Buffer Overflow Vulnerability

  • CVE-2024-56827: OpenJPEG Buffer Overflow Vulnerability

  • CVE-2024-56826: OpenJPEG 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