High severity · published Aug 5, 2026
CVE-2026-70378
imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
7.5
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 26% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
IM
imagecli · theotherphil
through 0.2.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-70378
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-70378
github.com
https://github.com/theotherphil/imagecli/issues/67
More from imagecli
7.5
CVE-2026-70377
imagecli - Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service
