{"id":"CVE-2026-70378","summary":"imagecli: Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic","details":"imagecli's `carve \u003cratio\u003e` pipeline operation (Carve::apply() in src/image_ops.rs) only asserts `ratio \u003c= 1.0`, never validating that the ratio is positive. A negative ratio (e.g. -5) causes the computed target width to saturate to 0 via Rust's defined float-to-uint cast, which is then passed to imageproc::seam_carving::shrink_width — a function that panics when given a width below 2, crashing the process. This shares the same missing-input-validation root cause as the sibling `scale` finding in the same file but is an independently fixable, distinct code path.","modified":"2026-08-07T03:46:18.189281496Z","published":"2026-08-05T06:58:50.621Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70378.json","cna_assigner":"TuranSec","cwe_ids":["CWE-1284"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70378.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70378"},{"type":"REPORT","url":"https://github.com/theotherphil/imagecli/issues/67"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/theotherphil/imagecli","events":[{"introduced":"0"},{"last_affected":"4e46f496cd8d18b8e830ae476e53feac4ed00738"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"0.2.1"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.2.1","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-70378.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}