# CVE-2026-70378: imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic

- Severity: High 7.5 (CVSS:3.1, scored by TuranSec) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-05T06:58:50.621Z
- Modified: 2026-10-24T16:10:00.153Z
- Weaknesses: CWE-1284
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: TuranSec

## 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.

(As written by CVE List.)

## Affected

- theotherphil imagecli: up to 0.2.1

## References

- <https://github.com/theotherphil/imagecli/issues/67> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2026-70378](https://www.cve.org/CVERecord?id=CVE-2026-70378), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-70378](https://nvd.nist.gov/vuln/detail/CVE-2026-70378), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-70378 · Whole record: https://cve.day/CVE-2026-70378.json · Rebuilt by cve.day 2026-11-25T22:59:31.080Z
