CVE-2026-107704
published critical CVSS 4.0 · 9.3image_optimizer 1.3.0 through 1.9.0 OS Command Injection via identify_format
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jtescher | — | image_optimizer1.3.0 through 1.9.0 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jtescher | image_optimizer | 1.3.0 through 1.9.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
5- https://gist.github.com/R3tro16/a99a058d24a06692721a6a3fade9649d
- https://github.com/jtescher/image_optimizer
- https://github.com/jtescher/image_optimizer/blob/v1.9.0/lib/image_optimizer.rb#L37-L47
- https://github.com/jtescher/image_optimizer/blob/v1.9.0/lib/image_optimizer/shell.rb#L30-L32
- VulnCheck Advisory: image_optimizer 1.3.0 through 1.9.0 OS Command Injection via identify_format https://www.vulncheck.com/advisories/image-optimizer-1.3.0-through-1.9.0-os-command-injection-via-identify-format
Provider assertions
2VulnCheck · cna
image_optimizer 1.3.0 through 1.9.0 OS Command Injection via identify_format
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c3933f0b7f956f37ec44e2215e2d0110a22b14e105ff7424f008f1d317459dd3
- Ingested
- 09 Oct 2026, 16:25:59 UTC
- Source record
- Official CVE record