{"id":"CVE-2026-70377","summary":"imagecli: Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service","details":"imagecli's `scale \u003cratio\u003e` 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.","modified":"2026-08-07T03:46:22.091001557Z","published":"2026-08-05T06:58:47.554Z","database_specific":{"cna_assigner":"TuranSec","cwe_ids":["CWE-789"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70377.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70377.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70377"},{"type":"REPORT","url":"https://github.com/theotherphil/imagecli/issues/66"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/theotherphil/imagecli","events":[{"introduced":"0"},{"last_affected":"4e46f496cd8d18b8e830ae476e53feac4ed00738"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"0.2.1"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.2.1","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-70377.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}