7.5high
imagecli - Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service
- Severity
- 7.5high CVSS:3.1 by TuranSec
- Exploit likelihood
- 0.39% (higher than 34% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- TuranSec
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| theotherphil imagecli | up to 0.2.1 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
La operación de pipeline “scale [ratio]” de imagecli (Scale::apply() en src/image_ops.rs) calcula el ancho/alto de salida como (dimensión como f32 * ratio) como u32 sin validación de límite superior en la relación proporcionada por la CLI, que se analiza a través de nom::number::complete::float sin comprobación de rango. Una relación grande (p. ej., 100000) provoca un intento de asignación de cientos de terabytes, abortando el proceso. Cualquier aplicación que incruste imagecli como una biblioteca y que acepte cadenas de pipeline controladas por el usuario es remotamente vulnerable a un fallo con una sola solicitud.
References
| https://github.com/theotherphil/imagecli/issues/66 | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-70377 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-70377 changed 2026-10-24 | Public domain |