CVE-2026-70377

Source
https://cve.org/CVERecord?id=CVE-2026-70377
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-70377.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-70377
Published
2026-08-05T06:58:47.554Z
Modified
2026-08-07T03:46:22.091001557Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
imagecli: Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-789"
    ],
    "cna_assigner": "TuranSec",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70377.json"
}
References

Affected packages

Git / github.com/theotherphil/imagecli

Affected ranges

Type
GIT
Repo
https://github.com/theotherphil/imagecli
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.2.1"
        }
    ]
}

Affected versions

v0.*
v0.1.0
v0.2.0
v0.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-70377.json"