CVE-2026-107704: jtescher image_optimizer · OS Command Injection
Affects jtescher image_optimizerSource CVE Database V5
Not known to be exploited · CVSS 9.3 Critical.
Data as of 22 Nov 2026, 21:14 UTC
- EPSS
- 2.0% chance of exploitation in 30 days – higher than 81% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| jtescherimage_optimizer | Affected
| Fixed in– |
RubyGemsimage_optimizerpkg:gem/image_optimizerOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until an official fix is available, users should disable the identify option or avoid processing untrusted image paths to mitigate the risk. Avoid running the Ruby process with elevated privileges to reduce potential impact.
Description
The image_optimizer Ruby gem versions 1.3.0 through 1.9.0 contains a critical OS command injection vulnerability in the ImageOptimizer#identify_format method. This flaw allows attackers to execute arbitrary OS commands by supplying a crafted image path when the identify option is enabled. The vulnerability arises because user-controlled input, such as an uploaded file name, is passed to Ruby backticks without proper sanitization, enabling shell metacharacters to be executed with the privileges of the Ruby process.
References
- gist.github.com/R3tro16/a99a058d24a06692721a6a3fade9649d (opens in a new tab)
- github.com/jtescher/image_optimizer/blob/v1.9.0/lib/image_optimizer.rb (opens in a new tab)
- github.com/jtescher/image_optimizer/blob/v1.9.0/lib/image_optimizer/shell.rb (opens in a new tab)
- github.com/jtescher/image_optimizer (opens in a new tab)
- vulncheck.com/advisories/image-optimizer-1.3.0-through-1.9.0-os-command-injection-via-identify-format (opens in a new tab)