CVE-2026-70378
imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
- State
- Published
- Severity
- 7.5 High
- Published
- Aug 5, 2026
- Updated
- Aug 10, 2026
- Reserved
- Aug 4, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | TuranSec |
Weaknesses
- CWE-1284 Improper Validation of Specified Quantity in Input
Affected Products
| Product | Versions |
|---|---|
imageclitheotherphil |
|
References
- https://github.com/theotherphil/imagecli/issues/67third-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.