Skip to main content

CVE-2026-107704: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in jtescher image_optimizer

0
Critical
VulnerabilityCVE-2026-107704cvecve-2026-107704
Published: 10/08/2026 (10/08/2026, 18:36:37 UTC)
Source: CVE Database V5
Vendor/Project: jtescher
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

jtescher

image_optimizer

Affected versions
>=1.3.0 <=1.9.0
RubyGemsmore threats →cve
image_optimizer
pkg:gem/image_optimizer
Affected versions
>=1.3.0 <=1.9.0

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

AILast updated: 10/08/2026, 20:48:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses