CVE-2026-70377: CWE-789 Uncontrolled Memory Allocation in theotherphil imagecli
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.
AI Analysis
Technical Summary
The vulnerability exists in imagecli's scale <ratio> pipeline operation (Scale::apply() in src/image_ops.rs). The output dimensions are calculated by multiplying the input dimension by the user-supplied ratio parsed as a float without range checks. A large ratio, such as 100000, causes an attempt to allocate hundreds of terabytes of memory, which aborts the process. This uncontrolled memory allocation (CWE-789) can be triggered remotely if the application embeds imagecli and accepts user-controlled pipeline strings, resulting in a denial of service via process crash.
Potential Impact
An attacker can cause a denial of service by crashing the application or service embedding imagecli through supplying a large scale ratio that triggers excessive memory allocation. There is no impact on confidentiality or integrity reported, only availability is affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid passing untrusted user input directly to the scale ratio parameter in imagecli or any application embedding it. Implement input validation to restrict the scale ratio to a safe upper bound to prevent excessive memory allocation.
CVE-2026-70377: CWE-789 Uncontrolled Memory Allocation in theotherphil imagecli
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 v3.1
Score 7.5high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in imagecli's scale <ratio> pipeline operation (Scale::apply() in src/image_ops.rs). The output dimensions are calculated by multiplying the input dimension by the user-supplied ratio parsed as a float without range checks. A large ratio, such as 100000, causes an attempt to allocate hundreds of terabytes of memory, which aborts the process. This uncontrolled memory allocation (CWE-789) can be triggered remotely if the application embeds imagecli and accepts user-controlled pipeline strings, resulting in a denial of service via process crash.
Potential Impact
An attacker can cause a denial of service by crashing the application or service embedding imagecli through supplying a large scale ratio that triggers excessive memory allocation. There is no impact on confidentiality or integrity reported, only availability is affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid passing untrusted user input directly to the scale ratio parameter in imagecli or any application embedding it. Implement input validation to restrict the scale ratio to a safe upper bound to prevent excessive memory allocation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-04T07:13:07.993Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a72e5cbbf8831d539735234
Added to database: 08/05/2026, 07:27:07 UTC
Last enriched: 08/05/2026, 07:43:00 UTC
Last updated: 08/06/2026, 00:41:15 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.