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-2026-35197

CVE-2026-35197: dye Library RCE Vulnerability

CVE-2026-35197 is a remote code execution flaw in the dye color library for shell scripts that allows arbitrary code execution through template expressions. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-35197 Overview

CVE-2026-35197 is a code injection vulnerability discovered in dye, a portable and respectful color library designed for shell scripts. Prior to version 1.1.1, certain dye template expressions could result in the execution of arbitrary code. This vulnerability was discovered and fixed by dye's author and is not known to have been exploited in the wild.

Critical Impact

Arbitrary code execution through maliciously crafted template expressions in shell scripts using the dye library, potentially allowing attackers to compromise systems where vulnerable scripts are executed.

Affected Products

  • dye versions prior to 1.1.1

Discovery Timeline

  • 2026-04-06 - CVE CVE-2026-35197 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-35197

Vulnerability Analysis

This vulnerability falls under CWE-94 (Improper Control of Generation of Code - Code Injection). The flaw exists in how dye processes template expressions within shell scripts. When user-controlled or malicious input is passed through certain template expression patterns, the library fails to properly sanitize or validate the input before processing, allowing arbitrary code to be executed in the context of the running shell script.

The local attack vector requires user interaction, meaning an attacker would need to convince a user to execute a script containing malicious template expressions or craft input that gets processed by a vulnerable dye template. Successful exploitation could result in high confidentiality and integrity impacts, allowing attackers to read sensitive data or modify system files, though availability is not affected.

Root Cause

The root cause of this vulnerability lies in improper input validation and sanitization within dye's template expression parser. The library did not adequately escape or restrict template expression content before evaluating it, creating an injection point where shell metacharacters or command sequences could be interpreted and executed. This is a classic code injection pattern where template processing mechanisms inadvertently allow code execution when handling untrusted input.

Attack Vector

The attack vector is local, requiring an attacker to either have local access to craft malicious template expressions or to manipulate input that flows into dye template processing within shell scripts. The attack requires low privileges but does necessitate user interaction—such as a user running a script that processes attacker-controlled data through dye templates.

An attacker could craft specially formatted template expressions that, when processed by vulnerable versions of dye, would break out of the intended template context and execute arbitrary shell commands. This could be delivered through various means such as environment variables, command-line arguments, or file content that gets processed by scripts using the dye library.

Detection Methods for CVE-2026-35197

Indicators of Compromise

  • Unexpected shell command execution in logs associated with scripts using the dye library
  • Anomalous process spawning from shell scripts that utilize dye for color formatting
  • Unusual file access patterns or modifications following execution of scripts with dye dependencies

Detection Strategies

  • Audit shell scripts in your environment for dye library usage and verify versions are 1.1.1 or later
  • Monitor for unusual command execution patterns originating from scripts known to use color formatting libraries
  • Implement file integrity monitoring on critical shell scripts to detect tampering that might introduce malicious template expressions

Monitoring Recommendations

  • Enable detailed shell script execution logging to capture template expression processing
  • Monitor for suspicious input patterns that may indicate template injection attempts
  • Review application logs for any errors or unusual output from dye-related template processing

How to Mitigate CVE-2026-35197

Immediate Actions Required

  • Upgrade dye to version 1.1.1 or later immediately
  • Audit all shell scripts using dye for potential exposure to untrusted input in template expressions
  • Restrict execution of scripts using vulnerable dye versions until patching is complete
  • Review and validate any user-controlled input that flows into dye template expressions

Patch Information

The vulnerability has been fixed in dye version 1.1.1. Users should upgrade to this version or later to remediate the vulnerability. The fix was implemented by the dye author who both discovered and patched the issue. For additional details, refer to the GitHub Security Advisory and the MattieBee Template Advisory.

Workarounds

  • Avoid processing untrusted or user-controlled input through dye template expressions until the upgrade is complete
  • Implement input validation and sanitization for any data that flows into dye templates
  • Consider temporarily disabling dye color functionality in security-sensitive scripts until patching is complete
bash
# Upgrade dye to patched version
# Using typical package manager or direct installation
# Verify version after upgrade
dye --version
# Expected: 1.1.1 or later

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDye

  • SeverityMEDIUM

  • CVSS Score6.6

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Security Advisory

  • MattieBee Template Advisory
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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