{"id":"CVE-2026-107704","aliases":["CVE-2026-107704"],"related":[],"kind":"vulnerability","state":"published","title":"image_optimizer 1.3.0 through 1.9.0 OS Command Injection via identify_format","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-08T18:36:37.394Z","modified":"2026-10-09T15:17:08.667Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"semver","introduced":"1.3.0","lastAffected":"1.9.0","status":"affected"}],"vendor":"jtescher","product":"image_optimizer","repo":"https://github.com/jtescher/image_optimizer","source":"cvelist"}],"references":[{"url":"https://gist.github.com/R3tro16/a99a058d24a06692721a6a3fade9649d","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/jtescher/image_optimizer/blob/v1.9.0/lib/image_optimizer.rb#L37-L47","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/jtescher/image_optimizer/blob/v1.9.0/lib/image_optimizer/shell.rb#L30-L32","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/jtescher/image_optimizer","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/image-optimizer-1.3.0-through-1.9.0-os-command-injection-via-identify-format","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["William Pierson (Retro16)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-10-09T14:05:20.395Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-107704","url":"https://www.cve.org/CVERecord?id=CVE-2026-107704","licence":"CVE Terms of Use","modified":"2026-10-09T14:05:27.930Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-107704","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107704","licence":"Public domain","modified":"2026-10-09T15:17:08.667Z"}],"updatedAt":"2026-11-25T22:59:43.216Z","epss":{"score":0.02046,"percentile":0.81753,"date":"2026-12-01T12:00:22.000Z"}}