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:50Z
Modified
2026-10-26T02:30:24Z
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 pipeline operation (Carve::apply in src/image_ops.rs) only asserts , 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::seam_carving::shrink_width — a function that panics when given a width below 2, crashing the process.

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

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"