{"id":"CVE-2026-70378","aliases":["CVE-2026-70378"],"related":[],"kind":"vulnerability","state":"published","title":"imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La operación de pipeline ’carve [ratio]’ de imagecli (Carve::apply() en src/image_ops.rs) solo afirma ’ratio menor o igual que 1.0’, nunca validando que la relación sea positiva. Una relación negativa (p. ej., -5) hace que el ancho objetivo calculado se sature a 0 a través de la conversión de flotante a entero sin signo (float-to-uint) definida por Rust, que luego se pasa a imageproc::seam_carving::shrink_width - una función que entra en pánico cuando se le da un ancho inferior a 2, bloqueando el proceso. Esto comparte la misma causa raíz de validación de entrada faltante que el hallazgo hermano ’scale’ en el mismo archivo, pero es una ruta de código distinta y corregible de forma independiente.","source":"nvd"}],"published":"2026-08-05T06:58:50.621Z","modified":"2026-10-24T16:10:00.153Z","severity":{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1284"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"0.2.1","status":"affected"}],"vendor":"theotherphil","product":"imagecli","source":"cvelist"}],"references":[{"url":"https://github.com/theotherphil/imagecli/issues/67","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["agrresore"],"assigner":"TuranSec","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-05T13:14:40.565Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70378","url":"https://www.cve.org/CVERecord?id=CVE-2026-70378","licence":"CVE Terms of Use","modified":"2026-08-10T11:44:56.994Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70378","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70378","licence":"Public domain","modified":"2026-10-24T16:10:00.153Z"}],"updatedAt":"2026-11-25T22:59:31.080Z","epss":{"score":0.00327,"percentile":0.27854,"date":"2026-12-01T12:00:22.000Z"}}