CVE-2026-107704 Details
Description
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.
A command injection vulnerability has been identified in the image_optimizer Ruby gem, specifically in versions 1.3.0 through 1.9.0. The issue arises in the ImageOptimizer#identify_format method, where user-supplied image paths can be manipulated to execute arbitrary commands. This exploitation occurs when the identify option is enabled, allowing attackers to append shell metacharacters to the image path. The injected commands are executed with the privileges of the Ruby process, potentially leading to unauthorized actions on the server.
Users can upgrade to version 1.9.1 or later, where this vulnerability has been addressed. If an immediate upgrade is not possible, the vulnerability can be mitigated by avoiding the use of the identify option or by sanitizing the image path to remove any potentially harmful characters before it is processed by the ImageOptimizer.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 8, 2026CISA-ADP
Assessed Oct 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| image_optimizer | >= 1.3.0, <= 1.9.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 9, 2026 | CVE Modified | CISA-ADP |
| Oct 8, 2026 | New CVE Received | [email protected] |
Volerion