CVE-2026-70377
Received Received - Intake

imagecli Scale Operation Memory Exhaustion via Unbounded Ratio

Vulnerability report for CVE-2026-70377, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-05

Last updated on: 2026-08-05

Assigner: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-05
Last Modified
2026-08-05
Generated
2026-08-05
AI Q&A
2026-08-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
theotherphil imagecli *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-789 The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves imagecli's scale operation which calculates output dimensions by multiplying user-supplied ratio values without validating the ratio's upper limit. Extremely large ratios cause massive memory allocation attempts, leading to process termination.

Detection Guidance

This vulnerability can be detected by monitoring for processes crashing when processing image files with large scale ratios. Check logs for applications using imagecli for out-of-memory errors or allocation failures.

Impact Analysis

This vulnerability allows remote attackers to crash applications that use imagecli by sending a single request with a very large scale ratio. This results in denial of service as the application aborts due to failed memory allocation.

Compliance Impact

This vulnerability primarily causes a Denial of Service (DoS) by consuming excessive system resources, which could disrupt services handling sensitive data. For GDPR, this may impact availability of personal data processing systems. For HIPAA, it could interrupt critical healthcare operations. However, the CVE does not directly address data confidentiality or integrity violations.

Mitigation Strategies

Immediately update imagecli to a patched version that validates the scale ratio. If embedding imagecli, add input validation to reject excessively large ratio values before processing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-70377. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart