What’s Vulnerable › Vulnerabilities
CVE-2026-70378: imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-05 · updated 2026-10-24
- Weakness: CWE-1284
Description
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.
Affected products
- theotherphil imagecli: through 0.2.1
References
- https://github.com/theotherphil/imagecli/issues/67
- https://github.com/theotherphil/imagecli/issues/67
Get alerted when CVE-2026-70378 or the next vulnerability affects your stack