CVE-2026-107704

CRITICALCVSS 9.8/10EPSS 1.66%

Last modified

CVE-2026-107704 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 1.66% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
jtescherimage_optimizer>= 1.3.0, <= 1.9.0

References

Timeline

Published
Last Modified
Status
Deferred

Frequently Asked Questions

What is CVE-2026-107704?
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.
How severe is CVE-2026-107704?
CVE-2026-107704 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 1.66% probability of exploitation in the next 30 days.
How do I fix CVE-2026-107704?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-107704?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST