CVE-2026-35197 Code injection in dye template expressions
Attackers can execute arbitrary code via malicious dye template expressions in this shell color library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-35197?
CVE-2026-35197 is a medium-severity code injection vulnerability in mattieb dye, published on 6 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-94
Which versions are affected by CVE-2026-35197?
It affects 1 product.
Products include Mattiebee Dye.
How do I fix CVE-2026-35197?
No fix has been published for CVE-2026-35197 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-35197 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35197 exists.
Sources
Also known as GHSA-3v4r-5vfh-3wjr.