Read the docs
TI-2026-69722 Aliases CVE-2026-107704

OS command injection in image_optimizer gem via identify_format

Priority HIGH 81CWE-78Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.

Summary

The image_optimizer Ruby gem, versions 1.3.0 through 1.9.0, contains an OS command injection flaw (CWE-78) in ImageOptimizer#identify_format. Shell metacharacters such as ';' in an image path are run through Ruby backticks when the identify option is enabled. An unauthenticated remote attacker who controls the image path, such as an uploaded file name, can execute commands with the privileges of the Ruby process.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.02046 81st percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
jtescherimage_optimizer1.3.0 – 1.9.0—No fix listedCNA
  • image_optimizer Vendorjtescher Affected 1.3.0 – 1.9.0 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for image_optimizer.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Timeline

  1. 2026-10-09 Threatist record created from CVE-2026-107704
  2. 2026-10-10 CISA SSVC decision points changed
  3. 2026-10-10 Priority changed: MEDIUM → HIGH

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences