Description
imagecli's pipeline operation (Scale::apply in src/image_ops.rs) computes output width/height as (dimension as f32 * ratio) as u32 with no upper-bound validation on the CLI-supplied ratio, which is parsed via nom::number::complete::float with no range check. Any application embedding imagecli as a library and accepting user-controlled pipeline strings is remotely crashable with a single request.
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 scale pipeline operation, implemented in the Scale::apply function, calculates output dimensions by multiplying the original width or height by a ratio supplied by the command line and parsed as a floating‑point number. The implementation performs this calculation as u32 without checking that the resulting value stays within any safe bounds, and it does not validate that the ratio itself falls within a reasonable range. Because no validation or bounding is performed, an attacker can supply an arbitrarily large ratio, causing the computed dimensions to demand an unrealistically large amount of memory. The resulting allocation attempt can exhaust system resources, leading to a process crash. Embedding imagecli into an application that accepts user‑controlled pipeline strings amplifies the risk, as a single request with a crafted ratio can remotely trigger a denial‑of‑service condition.

Affected Systems

The vulnerable component is theimagecli tool maintained by theotherphil. The product can be used both as a standalone CLI for image processing and as a library that processes user‑supplied pipeline strings. No specific product versions are listed, but any instance that incorporates the current imagecli source code without applying bounds on the scale ratio is affected.

Risk and Exploitability

The vulnerability is scored 7.5 on the CVSS scale, indicating a high impact although no remote privilege escalation or data compromise is described. The EPSS score is below 1%, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is through any application that accepts untrusted input to build an imagecli pipeline or by direct invocation of the CLI with a crafted ratio argument. A single request can exploit the bug, causing a crash and denial of service. Proper bounds checking or input validation would mitigate the risk.

Generated by OpenCVE AI on August 10, 2026 at 23:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update imagecli to the latest released version that includes a fix for the unbounded ratio bug.
  • If a newer release is not yet available, validate or constrain the user‑supplied ratio value to a realistic range (e.g., 0.0 < ratio <= 10.0) before passing it to imagecli.
  • When embedding imagecli, reject or sanitize any pipeline strings derived from untrusted sources to prevent the injection of malicious scale ratios.

Generated by OpenCVE AI on August 10, 2026 at 23:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
Description imagecli's `scale <ratio>` pipeline operation (Scale::apply() in src/image_ops.rs) computes output width/height as (dimension as f32 * ratio) as u32 with no upper-bound validation on the CLI-supplied ratio, which is parsed via nom::number::complete::float with no range check. A large ratio (e.g. 100000) causes an attempted allocation of hundreds of terabytes, aborting the process. Any application embedding imagecli as a library and accepting user-controlled pipeline strings is remotely crashable with a single request. imagecli's pipeline operation (Scale::apply in src/image_ops.rs) computes output width/height as (dimension as f32 * ratio) as u32 with no upper-bound validation on the CLI-supplied ratio, which is parsed via nom::number::complete::float with no range check. Any application embedding imagecli as a library and accepting user-controlled pipeline strings is remotely crashable with a single request.

Mon, 10 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Title imagecli: Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service imagecli - Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service

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 `scale <ratio>` pipeline operation (Scale::apply() in src/image_ops.rs) computes output width/height as (dimension as f32 * ratio) as u32 with no upper-bound validation on the CLI-supplied ratio, which is parsed via nom::number::complete::float with no range check. A large ratio (e.g. 100000) causes an attempted allocation of hundreds of terabytes, aborting the process. Any application embedding imagecli as a library and accepting user-controlled pipeline strings is remotely crashable with a single request.
Title imagecli: Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service
Weaknesses CWE-789
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-10T11:44:54.942Z

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

Link: CVE-2026-70377

cve-icon Vulnrichment

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

cve-icon NVD

Status : Received

Published: 2026-08-05T08:16:41.830

Modified: 2026-08-10T12:17:23.710

Link: CVE-2026-70377

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T23:15:05Z

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value