---
id: CVE-2026-70377
title: >-
  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…
summary: >-
  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…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-789
published: '2026-08-05'
updated: '2026-08-10'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-70377'
references:
  - url: 'https://github.com/theotherphil/imagecli/issues/66'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
  - url: 'https://github.com/theotherphil/imagecli/issues/66'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.0046
epssPercentile: 0.37158
ingestedAt: '2026-08-10T12:39:48.133Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
