CVE-2026-107704: Vulnerability in image optimizer Ruby gem

Critical. 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.

CWE-78

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-78
Published
8 Oct 2026
Last change
9 Oct 2026

Affected products

Affected versions and the first fixed release

  • image optimizer Ruby gem Through 1.9.0. No fixed version recorded

Advisories

Vendor and security advisories

Related