imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
cve-program · CVE-2026-70378
Publishedimagecli'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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-70378 · CVE overview and exploitation status
cve-program · CVE-2026-70378
Related changes
Linked by CVE identifierNo related changes are available here.