{"id":"CVE-2026-70378","summary":"imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic","details":"imagecli's pipeline operation (Carve::apply in src/image_ops.rs) only asserts , 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.","modified":"2026-08-30T03:30:21.723336941Z","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://github.com/theotherphil/imagecli/issues/67"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70378"}],"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.9.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"}]}