CVE-2026-70377 PUBLISHED

imagecli: Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service

Assigner: TuranSec
Reserved: 04.08.2026 Published: 05.08.2026 Updated: 05.08.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

Product Status

Vendor theotherphil
Product imagecli
Versions Default: unknown
  • affected from 0 to 0.2.1 (incl.)

Credits

  • agrresore finder

References

Problem Types

  • CWE-789 Uncontrolled Memory Allocation CWE