CVE-2026-70378 Details
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.
A denial-of-service vulnerability has been identified in imagecli version 0.2.1, specifically within the seam carving operation of the image processing pipeline. The issue arises because the operation only checks that the width ratio is less than or equal to 1.0, without validating that it is a positive value. This oversight allows negative ratios to be processed, leading to a crash when the application attempts to manipulate the image. The vulnerability is rooted in improper input validation, allowing crafted arguments to cause an unhandled panic, which disrupts the application's execution.
The vulnerability can be fixed by modifying the input validation for the 'carve' operation to ensure that the width ratio is strictly positive and does not exceed 1.0. This can be done by implementing a validation check at parse time, which would reject invalid ratios before they reach the image processing stage.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 5, 2026CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/theotherphil/imagecli/issues/67 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/theotherphil/imagecli/issues/67 | TuranSec | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1284 | Improper Validation of Specified Quantity in Input | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| imagecli | <= 0.2.1 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 10, 2026 | CVE Modified | TuranSec |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | New CVE Received | TuranSec |
Volerion