Vulnerability · Published Aug 5, 2026 · Assigned by TuranSec
CVE-2026-70378imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
High 7.5
In plain English
A high-severity security flaw in imagecli from theotherphil. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities).
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.3%top 74.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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 (as reported)
| Vendor | Product | Versions |
|---|---|---|
| theotherphil | imagecli | 0 – through 0.2.1 |
Weakness: CWE-1284 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/theotherphil/imagecli/issues/67 third-party-advisory