CVE-2026-107704: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in jtescher image_optimizer
Description
The image_optimizer Ruby gem versions 1.3.0 through 1.9.0 contains a critical OS command injection vulnerability in the ImageOptimizer#identify_format method. This flaw allows attackers to execute arbitrary OS commands by supplying a crafted image path when the identify option is enabled. The vulnerability arises because user-controlled input is passed to Ruby backticks without proper sanitization, enabling shell metacharacter injection. The CVSS 4.0 score is 9.3, indicating a critical severity with network attack vector and no required privileges or user interaction.
CVSS v4.0
Score 9.3critical
Affected software
jtescher
image_optimizer
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-107704 is an OS command injection vulnerability in the image_optimizer Ruby gem (versions 1.3.0 through 1.9.0). The vulnerability exists in the ImageOptimizer#identify_format method, which executes shell commands using Ruby backticks on a user-supplied image path. Attackers can exploit this by providing a crafted path containing shell metacharacters (e.g., ';') to execute arbitrary commands with the privileges of the Ruby process. This vulnerability is critical with a CVSS 4.0 score of 9.3 and requires no privileges or user interaction to exploit.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary OS commands on the system running the vulnerable image_optimizer gem, potentially leading to full system compromise depending on the Ruby process privileges. The vulnerability is exploitable over the network without authentication or user interaction, making it highly severe.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid enabling the identify option or ensure that image paths are strictly validated and sanitized to prevent injection of shell metacharacters.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-10-08T16:52:24.549Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac7fef52cdf04f656318c16
Added to database: 10/08/2026, 20:37:09 UTC
Last enriched: 10/08/2026, 20:48:14 UTC
Last updated: 10/08/2026, 20:48:14 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.