CVE-2026-107704 image_optimizer Ruby gem - Command Injection

image_optimizer Ruby gem 1.3.0 through 1.9.0 contains a command injection caused by improper sanitization of image path in ImageOptimizer#identify_format, letting attackers execute OS commands with Ruby process privileges, exploit requires crafted image path with shell metacharacters.

CVSS base score 9.8 /10
Critical
CISA KEV
Not listed
Public exploit
None known
Authentication
Not required
EPSS
1.66% chance of exploitation in 30 days
View the NVD record ↗