CVE-2026-70378

Source
https://cve.org/CVERecord?id=CVE-2026-70378
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-70378.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-70378
Published
2026-08-05T06:58:50.621Z
Modified
2026-08-07T03:46:18.189281496Z
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: Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
Details

imagecli's carve <ratio> pipeline operation (Carve::apply() in src/imageops.rs) only asserts ratio <= 1.0, never validating that the ratio is positive. A negative ratio (e.g. -5) causes the computed target width to saturate to 0 via Rust's defined float-to-uint cast, which is then passed to imageproc::seamcarving::shrink_width — a function that panics when given a width below 2, crashing the process. This shares the same missing-input-validation root cause as the sibling scale finding in the same file but is an independently fixable, distinct code path.

Database specific
{
    "cna_assigner": "TuranSec",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70378.json",
    "cwe_ids": [
        "CWE-1284"
    ]
}
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
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.2.1"
        }
    ],
    "source": "AFFECTED_FIELD"
}

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-70378.json"