Skip to main content

imagecli EUVDEUVD-2026-53198

| CVE-2026-70378 HIGH
Improper Validation of Specified Quantity in Input (CWE-1284)
2026-08-05 TuranSec GHSA-6gxc-w5rp-4g3p
7.5
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with crafted pipeline input
  2. Delivery
    Supply negative carve ratio (e.g., carve -5)
  3. Exploit
    Float-to-uint saturation yields computed width=0
  4. Execution
    Zero width forwarded to imageproc::seam_carving::shrink_width
  5. Persist
    Runtime panic on width < 2
  6. Impact
    Process crash, service availability disrupted

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Input size validation
Exploitation Conditions

Exploitation requires that a target application accepts user-controlled input to imagecli's carve pipeline operation and forwards that input without sanitizing the ratio parameter for positivity. The crash is triggered specifically when the ratio argument is any negative number (e.g., -0.001, -5, -999); values between 0.0 and 1.0 are handled correctly by the existing assertion. For CLI deployments where only trusted administrators construct and execute imagecli commands, exploitation is not a realistic threat - the CVSS PR:N/AV:N rating is meaningful only when imagecli pipeline construction is exposed to untrusted network users through a wrapping service or API. There is no filesystem access, authentication bypass, or special configuration required beyond the application accepting a negative ratio value. Exploitation is limited to availability impact only; no code execution, data access, or persistence is possible via this path.

Impact

The CVSS 7.5 High score is grounded in AV:N/AC:L/PR:N/UI:N/S:U/A:H, which accurately models the worst-case deployment: a web service or API that exposes imagecli pipeline strings to untrusted network users without input sanitization. However, real-world risk is substantially lower for the majority of imagecli deployments, which are CLI-only and operated by trusted users. The product's CPE uses an all-version wildcard, indicating no targeted version intelligence is available. No EPSS score, CISA KEV entry, or public exploit code was identified in the provided intelligence, suggesting this is a research disclosure rather than an actively exploited issue. The impact is strictly availability (C:N/I:N) - a process crash with no code execution, privilege escalation, or data exposure pathway. For organizations running imagecli as an internal CLI tool, risk is negligible; for any service that wraps imagecli and accepts user-controlled pipeline parameters, this is a straightforward crash trigger requiring immediate input validation. The sibling finding in the scale path suggests defenders should audit all numeric ratio/scale parameters across the codebase, not only carve.

Exploit ScenarioDerived

An attacker submits a crafted imagecli pipeline string containing carve -5 (or any negative ratio value) to a web service or API that passes user-supplied pipeline parameters to imagecli for image processing. The negative float saturates to zero during Rust's defined float-to-uint cast, and imageproc::seam_carving::shrink_width panics immediately upon receiving a width of 0, crashing the imagecli process and denying image processing service to all users. No public exploit code exists, but the trigger is a single malformed parameter value, making independent rediscovery trivial for any attacker who reads the CVE description.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Process crash in imagecli's seam-carving pipeline allows denial of service via a negative ratio argument to the carve operation. The Carve::apply() function in src/image_ops.rs validates only that ratio <= 1.0, omitting a positivity check; a negative input saturates to zero through Rust's defined float-to-uint cast, which is forwarded to imageproc::seam_carving::shrink_width - a function that panics on widths below 2, terminating the process. No public exploit code exists and the vulnerability is not listed in CISA KEV, but the CVSS vector (AV:N/AC:L/PR:N/UI:N) reflects that any application exposing imagecli pipeline construction to untrusted input is exploitable with no authentication or interaction.

RemediationAI

The primary fix requires adding an explicit positivity check in Carve::apply() in src/image_ops.rs - asserting or returning an error when ratio <= 0.0 before the float-to-uint width calculation, alongside the existing ratio <= 1.0 upper-bound check. No vendor-released patched version has been confirmed at time of analysis; monitor https://github.com/theotherphil/imagecli/issues/67 and the imagecli GitHub releases page for an official tagged fix. As a compensating control for applications wrapping imagecli, validate and reject any non-positive value for the carve ratio parameter at the application layer before it reaches imagecli - this adds latency negligibly and eliminates the crash path without requiring an imagecli update. If imagecli is used exclusively by trusted operators via CLI, no immediate compensating action is required beyond awareness of the crash trigger.

Affected VersionsENISA

imagecli 0 ≤0.2.1

Affected Packages

euvd imagecli no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

imagecli is a Rust-based command-line image processing tool authored by theotherphil (CPE: cpe:2.3:a:theotherphil:imagecli:*:*:*:*:*:*:*:*) that supports composable pipeline operations including seam carving for content-aware image resizing. The vulnerability lives in Carve::apply() in src/image_ops.rs and is classified as CWE-1284 (Improper Validation of Specified Quantity in Input): the existing assertion enforces an upper bound (ratio <= 1.0) to prevent upscaling but performs no lower-bound check. In Rust, casting a negative f32/f64 to a u32 is defined behavior that saturates to 0 - unlike C undefined behavior, but semantically incorrect for a dimension calculation. The resulting zero-width value is then passed to imageproc::seam_carving::shrink_width, which contains an explicit runtime panic requiring a minimum input width of 2, producing an unrecoverable process crash. The CVE description notes this shares its root cause with a sibling scale finding in the same file, indicating systemic missing input validation across image_ops.rs pipeline operations.

Know when Imagecli gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TuranSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

AV:N and PR:N apply to the network-service deployment scenario; A:H reflects unrecoverable process crash; C:N/I:N confirmed as no data exposure or write impact exists.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

imagecli, used in production image processing pipelines, contains a vulnerability allowing unauthenticated remote attackers to crash service processes on demand, causing service outages. Organizations relying on imagecli-based image processing face immediate availability risk without a vendor-provided patching option. The vulnerability requires minimal technical effort to exploit and is accessible over the network, necessitating compensating controls and architectural changes to protect services.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Application-level input validation to reject negative or zero ratio values before imagecli seam-carving invocations; (2) Network segmentation and access control limiting image processing requests to trusted internal sources only; (3) Rate limiting and request throttling to reduce denial-of-service effectiveness; (4) Service auto-restart and monitoring to recover quickly from process terminations.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Rare
niche CLI image-processing tool, minimal enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy