CVE-2026-70378: CWE-1284 Improper Validation of Specified Quantity in Input in theotherphil imagecli
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.
AI Analysis
Technical Summary
The vulnerability exists in imagecli's Carve::apply function (src/image_ops.rs), which only asserts but does not validate that the ratio parameter is positive. When a negative ratio such as -5 is provided, Rust's float-to-uint cast saturates the computed target width to 0. This zero width is passed to imageproc::seam_carving::shrink_width, which panics if the width is less than 2, causing the application to crash. This is classified as CWE-1284: Improper Validation of Specified Quantity in Input.
Potential Impact
An attacker can cause a denial of service by crashing the imagecli process through supplying a negative ratio value. There is no confidentiality or integrity impact reported. The CVSS score is 7.5 (high) with network attack vector, low attack complexity, no privileges required, no user interaction, and impact limited to availability (denial of service).
Mitigation Recommendations
No official fix or patch is currently available for this vulnerability. Users should avoid supplying negative ratio values to the Carve::apply function as a temporary mitigation. Monitor the vendor advisory for updates regarding an official fix.
CVE-2026-70378: CWE-1284 Improper Validation of Specified Quantity in Input in theotherphil imagecli
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 v3.1
Score 7.5high
Affected software
theotherphil
imagecli
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in imagecli's Carve::apply function (src/image_ops.rs), which only asserts but does not validate that the ratio parameter is positive. When a negative ratio such as -5 is provided, Rust's float-to-uint cast saturates the computed target width to 0. This zero width is passed to imageproc::seam_carving::shrink_width, which panics if the width is less than 2, causing the application to crash. This is classified as CWE-1284: Improper Validation of Specified Quantity in Input.
Potential Impact
An attacker can cause a denial of service by crashing the imagecli process through supplying a negative ratio value. There is no confidentiality or integrity impact reported. The CVSS score is 7.5 (high) with network attack vector, low attack complexity, no privileges required, no user interaction, and impact limited to availability (denial of service).
Mitigation Recommendations
No official fix or patch is currently available for this vulnerability. Users should avoid supplying negative ratio values to the Carve::apply function as a temporary mitigation. Monitor the vendor advisory for updates regarding an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-04T07:13:07.993Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a72e5cbbf8831d539735237
Added to database: 08/05/2026, 07:27:07 UTC
Last enriched: 08/12/2026, 14:24:50 UTC
Last updated: 09/17/2026, 22:01:37 UTC
Views: 29
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.