image_optimizer 1.3.0 through 1.9.0 OS Command Injection via identify_format
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.
CVE-2026-107704
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-107704
image_optimizer
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://github.com/jtescher/image_optimizer",
"vendor": "jtescher",
"product": "image_optimizer",
"versions": [
{
"status": "affected",
"version": "1.3.0",
"versionType": "semver",
"lessThanOrEqual": "1.9.0"
}
],
"packageURL": "pkg:gem/image_optimizer",
"collectionURL": "https://rubygems.org/gems/image_optimizer",
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2026-107704
Source reference:
/cveMetadata/cveId
Publisher severity
critical
Source reference: /containers/cna/metrics
- Event
- #16251 · Revision 1
- Added to Heist Feed
- Publisher date