Vulnerability Description
imagecli's `carve <ratio>` pipeline operation (Carve::apply() in src/image_ops.rs) only asserts `ratio <= 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/theotherphil/imagecli/issues/67
- https://github.com/theotherphil/imagecli/issues/67
FAQ
What is CVE-2026-70378?
CVE-2026-70378 is a vulnerability with a CVSS score of 7.5 (HIGH). imagecli's `carve <ratio>` pipeline operation (Carve::apply() in src/image_ops.rs) only asserts `ratio <= 1.0`, never validating that the ratio is positive. A negative ratio (e.g. -5) causes the compu...
How severe is CVE-2026-70378?
CVE-2026-70378 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-70378?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.