Skip to main content

Dye CVE-2026-35197

| EUVDEUVD-2026-19471 CRITICAL
Code Injection (CWE-94)
2026-04-06 GitHub_M
9.8
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS 6.6 score reflects a locally exploitable vulnerability with low attack complexity (AC:L) and low privilege requirement (PR:L), but high confidentiality and integrity impact. Real-world risk is moderate: the attack vector is local (AV:L), requiring user interaction (UI:R), which constrains the practical attack surface. The CVSS does not account for EPSS or active exploitation data, but CISA KEV status indicates no confirmed active exploitation. No public proof-of-concept code has been disclosed. For organizations using dye in shell scripts, this poses a realistic risk if untrusted template input reaches authenticated users with script execution privileges; however, the local-only attack vector and interaction requirement make this lower priority than remotely exploitable alternatives.

Exploit ScenarioDerived

An authenticated local user with interactive access to a system running dye could craft a malicious template expression (e.g., embedded shell metacharacters or command substitution syntax) and pass it to a dye-dependent script via user input, configuration file, or script argument. If the script processes the template without sanitization, arbitrary commands execute in the context of the dye process. No public proof-of-concept code has been disclosed; exploitation requires manual crafting of template payloads and local code execution privileges.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 06, 2026

Arbitrary code execution in dye color library versions prior to 1.1.1 allows authenticated local users with interactive UI access to execute arbitrary code through malicious template expressions. The vulnerability stems from unsafe evaluation of template syntax and requires local file system access and user interaction. No public exploits have been identified; the vulnerability was discovered and remediated by the author.

RemediationAI

Vendor-released patch: dye 1.1.1. Users should immediately upgrade to version 1.1.1 or later, which addresses the unsafe template expression evaluation. No workarounds for earlier versions have been documented. Upgrade instructions and patch verification are available in the GitHub Security Advisory (https://github.com/mattieb/dye/security/advisories/GHSA-3v4r-5vfh-3wjr) and the author's advisory (https://mattiebee.io/dye-template-advisory).

Affected VersionsENISA

dye < 1.1.1

Affected Packages

euvd dye fix: 1.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

dye is a portable shell script color library that processes template expressions for dynamic output formatting. The vulnerability exists in template expression evaluation logic (CWE-94: Improper Control of Generation of Code, also known as Code Injection). Prior to version 1.1.1, the library fails to properly sanitize or restrict template expression evaluation, allowing attackers to break out of the intended template context and execute arbitrary shell commands. The affected product is identified by CPE cpe:2.3:a:mattieb:dye:*:*:*:*:*:*:*:* across all versions prior to 1.1.1.

Know when Dye gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Severity Changed
Jul 24, 2026 - 21:22 NVD
MEDIUM CRITICAL
CVSS changed
Jul 24, 2026 - 21:22 NVD
6.6 (MEDIUM) 9.8 (CRITICAL)
Patch available
Apr 16, 2026 - 05:29 EUVD
1.1.1
CVE Published
Apr 06, 2026 - 19:39 nvd
MEDIUM 6.6

DescriptionNVD

dye is a portable and respectful color library for shell scripts. Prior to 1.1.1, certain dye template expressions would result in execution of arbitrary code. This issue was discovered and fixed by dye's author, and is not known to be exploited. This vulnerability is fixed in 1.1.1.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy