Description
imagecli's `carve <ratio>` pipeline operation (Carve::apply() in src/image_ops.rs) only asserts `ratio <= 1.0`, 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. This shares the same missing-input-validation root cause as the sibling `scale` finding in the same file but is an independently fixable, distinct code path.
Published: 2026-08-05
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

imagecli’s carve operation accepts a ratio argument. The code only checks that the ratio is less than or equal to one and ignores whether it is negative. When a negative value such as –5 is supplied, the calculated target width becomes zero after a float-to‐uint cast and subsequently triggers a panic in the seam‑carving routine because the width is below the required minimum of two. This panic causes the entire imagecli process to terminate, leading to a denial of service for any user depending on that process. The weakness is an instance of missing input validation (CWE-1284).

Affected Systems

The vulnerable component is the imagecli utility from theotherphil. No specific product version is identified in the CVE data; therefore any release of imagecli that contains the unpatched carve routine is potentially affected.

Risk and Exploitability

The reported CVSS score is 7.5, indicating a high severity vulnerability. EPSS data is not available, so the likelihood of exploitation is unclear, but the simple nature of the input requirement (a numeric ratio) means that exploitation is technically straightforward. The vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be local or remote if imagecli receives user input via a network service or command line; a malicious actor could supply a negative ratio to trigger the crash and disrupt availability.

Generated by OpenCVE AI on August 5, 2026 at 08:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor’s latest patch for imagecli once it becomes available.
  • If a patch is not yet released, modify the carve command to validate that the ratio is strictly greater than zero before performing the operation.
  • Temporarily disable the carve feature or limit its use to trusted users until validation is in place.
  • Monitor imagecli logs for unexpected panics and ensure system restarts or error handling mitigates prolonged downtime.

Generated by OpenCVE AI on August 5, 2026 at 08:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Theotherphil
Theotherphil imagecli
Vendors & Products Theotherphil
Theotherphil imagecli

Wed, 05 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Description imagecli's `carve <ratio>` pipeline operation (Carve::apply() in src/image_ops.rs) only asserts `ratio <= 1.0`, 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. This shares the same missing-input-validation root cause as the sibling `scale` finding in the same file but is an independently fixable, distinct code path.
Title imagecli: Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
Weaknesses CWE-1284
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Theotherphil Imagecli
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T13:15:02.291Z

Reserved: 2026-08-04T07:13:07.993Z

Link: CVE-2026-70378

cve-icon Vulnrichment

Updated: 2026-08-05T13:14:59.052Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:17:58Z

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input