# CVE-2026-107704: image_optimizer 1.3.0 through 1.9.0 OS Command Injection via identify_format

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.05%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-08T18:36:37.394Z
- Modified: 2026-10-09T15:17:08.667Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- jtescher image_optimizer: from 1.3.0 up to 1.9.0

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `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`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://gist.github.com/R3tro16/a99a058d24a06692721a6a3fade9649d> (exploit, third-party-advisory)
- <https://github.com/jtescher/image_optimizer/blob/v1.9.0/lib/image_optimizer.rb#L37-L47> (technical-description)
- <https://github.com/jtescher/image_optimizer/blob/v1.9.0/lib/image_optimizer/shell.rb#L30-L32> (technical-description)
- <https://github.com/jtescher/image_optimizer> (product)
- <https://www.vulncheck.com/advisories/image-optimizer-1.3.0-through-1.9.0-os-command-injection-via-identify-format> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-107704](https://www.cve.org/CVERecord?id=CVE-2026-107704), CVE Terms of Use, modified 2026-10-09
- NVD: [CVE-2026-107704](https://nvd.nist.gov/vuln/detail/CVE-2026-107704), Public domain, modified 2026-10-09

---

Page: https://cve.day/CVE-2026-107704 · Whole record: https://cve.day/CVE-2026-107704.json · Rebuilt by cve.day 2026-11-25T22:59:43.216Z
