Live threats

All CVEs / jtescher

CVE-2026-107704jtescher image_optimizer

OS Command Injection in image_optimizer Ruby gem

Critical 9.3 No auth needed

Priority
71
CVSS 4.0
9.3
EPSS
—
Auth required
No
Published
Oct 8, 2026
Updated
Oct 9, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

The image_optimizer Ruby gem versions 1.3.0 through 1.9.0 contains an OS command injection vulnerability in the identify_format method. An unauthenticated attacker can execute arbitrary commands by controlling the image path, such as through uploaded file names, injecting shell metacharacters that execute with Ruby process privileges.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

No patch data

Update image_optimizer to a version after 1.9.0 when available. In the meantime, disable the identify option or validate and sanitize image paths before processing.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for image_optimizer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.