Skip to main content
VulnerabilityPublished

CVE-2026-107704: jtescher image_optimizer · OS Command Injection

Affects jtescher image_optimizerSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.3 Critical.

Data as of 22 Nov 2026, 21:14 UTC

CVSS 4.0 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
jtescherimage_optimizerAffected
  • >=1.3.0 <=1.9.0
Fixed in–
RubyGemsimage_optimizerpkg:gem/image_optimizerOther threatsAffected
  • >=1.3.0 <=1.9.0
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

Community reviews

Loading reviews…