A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2026-42046

CVE-2026-42046: libcaca Library RCE Vulnerability

CVE-2026-42046 is a remote code execution flaw in libcaca colour ASCII art library caused by integer overflow in canvas import. This article covers the technical details, affected versions, impact, and mitigation.

Published: May 18, 2026

CVE-2026-42046 Overview

CVE-2026-42046 is an integer overflow vulnerability in libcaca, a color ASCII art library widely used for terminal graphics rendering. The flaw resides in the canvas import functionality when parsing files in the caca format. An attacker who supplies a crafted caca file triggers an integer overflow that leads to a controlled heap out-of-bounds write [CWE-122]. Depending on the build configuration and the memory allocator in use, exploitation can result in memory corruption or remote code execution. The issue affects libcaca version 0.99.beta20 and earlier. This vulnerability is a regression of CVE-2021-3410, where the original fix proved incomplete. Commit fb77acff9ba6bb01d53940da34fb10f20b156a23 corrects the boundary calculation.

Critical Impact

Successful exploitation produces a controlled heap overflow that can lead to arbitrary code execution under the privileges of the user opening a malicious caca file.

Affected Products

  • libcaca 0.99.beta20 and earlier
  • Applications statically or dynamically linking vulnerable libcaca builds
  • Linux distributions shipping unpatched libcaca packages

Discovery Timeline

  • 2026-05-11 - CVE-2026-42046 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42046

Vulnerability Analysis

The vulnerability resides in libcaca's canvas import routine that parses the proprietary caca file format. The parser reads width, height, and cell count values from the untrusted input. It then computes a buffer size based on those values to allocate heap memory for canvas storage. The multiplication of these attacker-controlled dimensions overflows a fixed-width integer, producing a small allocation. Subsequent copy operations write the full attacker-supplied payload into this undersized buffer, corrupting adjacent heap metadata and chunks.

Because the overflow region and content are attacker-controlled, the resulting write primitive is precise rather than random. Adversaries can corrupt function pointers, vtables, or allocator metadata depending on the surrounding allocations and allocator implementation. Local code execution within the importing process becomes feasible.

Root Cause

The root cause is missing or insufficient validation of arithmetic on canvas dimensions during import. The earlier fix for CVE-2021-3410 addressed some overflow paths but left an exploitable code path that still permitted a wrap-around. The patch in commit fb77acff9ba6bb01d53940da34fb10f20b156a23 introduces correct bounds and overflow-safe arithmetic before allocation.

Attack Vector

Exploitation requires a local user to open a crafted caca file with an application that uses libcaca for canvas import. Common vectors include image viewers, terminal art tools, and converters bundled with libcaca utilities such as cacaview or img2txt. The attack vector is local with user interaction required.

No verified public proof-of-concept code is available. See the GitHub Security Advisory and the GitHub Issue Discussion for further technical context.

Detection Methods for CVE-2026-42046

Indicators of Compromise

  • Unexpected crashes or SIGSEGV faults in processes linking libcaca when opening .caca files
  • Heap corruption signatures from glibc such as malloc_consolidate(): invalid chunk size originating in caca_import_* call paths
  • Receipt of unsolicited .caca files via email, chat, or web download channels

Detection Strategies

  • Inventory installed libcaca versions across endpoints and flag any build at or below 0.99.beta20
  • Monitor process telemetry for libcaca-linked binaries spawning shells or writing executable files after opening untrusted input
  • Apply file-content inspection to detect malformed caca headers with dimension fields that would overflow 32-bit multiplication

Monitoring Recommendations

  • Collect crash dumps from user workstations and inspect for libcaca frames in the call stack
  • Alert on child processes launched by cacaview, img2txt, or other libcaca consumers
  • Track package manager events for libcaca updates to confirm patch rollout completion

How to Mitigate CVE-2026-42046

Immediate Actions Required

  • Upgrade libcaca to a build that includes commit fb77acff9ba6bb01d53940da34fb10f20b156a23 or a vendor backport
  • Identify and rebuild downstream applications that statically link libcaca
  • Restrict opening of untrusted .caca files until patches are deployed

Patch Information

The upstream fix is available in commit fb77acff9ba6bb01d53940da34fb10f20b156a23 in the cacalabs/libcaca repository. Linux distribution maintainers should backport this commit to packaged versions of 0.99.beta20. Confirm remediation through the GitHub Security Advisory GHSA-4vvg-vrqv-m56w.

Workarounds

  • Remove or restrict execute permissions on libcaca utilities such as cacaview and img2txt on systems that cannot be patched immediately
  • Block delivery of .caca files at email and web gateways until patched builds are deployed
  • Run libcaca-consuming applications under sandboxing such as firejail, bubblewrap, or AppArmor profiles to contain potential exploitation
bash
# Configuration example
# Verify installed libcaca version on Debian/Ubuntu
dpkg -l | grep libcaca

# Verify on RHEL/Fedora
rpm -q libcaca

# Run a libcaca consumer in a restrictive sandbox
firejail --noprofile --private --net=none cacaview untrusted.caca

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLibcaca

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.09%

  • 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-122
  • Technical References
  • GitHub Commit Change

  • GitHub Issue Discussion

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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