CVE-2026-70377 Details
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.
A denial-of-service vulnerability has been identified in imagecli's 'scale <ratio>' pipeline operation, specifically in version 0.2.1 and all prior versions. The issue arises because the operation applies a user-supplied ratio to the input image's dimensions without any upper-bound validation. This flaw allows for the input of excessively large ratios, which can cause the application to attempt to allocate an unrealistic amount of memory—hundreds of terabytes—leading to a process crash. The vulnerability can be exploited remotely in applications that embed imagecli as a library and accept user-controlled pipeline strings.
To address this vulnerability, it is recommended to implement a validation check on the scale ratio before it is applied, ensuring that it does not exceed a reasonable limit. This can be done by adding a maximum dimension constant and checking the ratio during the image processing operation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 5, 2026CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/theotherphil/imagecli/issues/66 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/theotherphil/imagecli/issues/66 | TuranSec | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-789 | Memory Allocation with Excessive Size Value | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| imagecli | <= 0.2.1 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 10, 2026 | CVE Modified | TuranSec |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | New CVE Received | TuranSec |
Volerion