{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-107704 exists.","fix":"No fix has been published for CVE-2026-107704 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-107704 is a critical command injection vulnerability in jtescher image_optimizer, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-107704 and fix it if it is affected.\n\nWhat it is: CVE-2026-107704 is a critical command injection vulnerability in jtescher image_optimizer, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-107704 exists.\n\nAffected product: jtescher image_optimizer. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-107704/ (Markdown: https://insights.sbomify.com/CVE-2026-107704/index.md)","id":"CVE-2026-107704","markdown":"https://insights.sbomify.com/CVE-2026-107704/index.md","name":"CVE-2026-107704","record":{"aliases":["GHSA-q8q6-2f24-vxv8"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby image optimization gem","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands via crafted image paths in the image_optimizer Ruby gem when the identify option is enabled.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"image_optimizer 1.3.0 through 1.9.0 OS Command Injection via identify_format","id":"CVE-2026-107704","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":0,"n_references":5,"next":{"headline":"Poppler 0.42.0 through 26.10.0 Stack Buffer Overflow via Decrypt::revision6Hash()","id":"CVE-2026-107705"},"packages":[],"prev":{"headline":"@enmaso/node-convert through 1.0.0 OS Command Injection via filepath and convertTo","id":"CVE-2026-107703"},"products":["image_optimizer"],"published":"2026-10-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-09","vendors":["jtescher"]},"summary":"Attackers can execute arbitrary OS commands via crafted image paths in the image_optimizer Ruby gem when the identify option is enabled.","url":"https://insights.sbomify.com/CVE-2026-107704/"}