CVE-2026-107704 image_optimizer 1.3.0 through 1.9.0 OS Command Injection via identify_format
Attackers can execute arbitrary OS commands via crafted image paths in the image_optimizer Ruby gem when the identify option is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-107704?
CVE-2026-107704 is a critical command injection vulnerability in jtescher image_optimizer, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The image_optimizer Ruby gem 1.3.0 through 1.9.0 contains an OS command injection vulnerability in ImageOptimizer#identify_format that allows attackers to execute commands by supplying a crafted image path when the identify option is enabled. Attackers controlling the path, such as an uploaded file name, can append shell metacharacters like ';' that are executed via Ruby backticks with the Ruby process privileges.
Weakness: CWE-78
Which versions are affected by CVE-2026-107704?
How do I fix CVE-2026-107704?
No fix has been published for CVE-2026-107704 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-107704 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-107704 exists.
Sources
Also known as GHSA-q8q6-2f24-vxv8.