imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| theotherphil | imagecli | unknown |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Theotherphil | Imagecli |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.327% probability within 30 days)
| Link | Providers |
|---|---|
| https://github.com/theotherphil/imagecli/issues/67 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | imagecli's `carve <ratio>` pipeline operation (Carve::apply() in src/image_ops.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::seam_carving::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. | 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. |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | imagecli: Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic | imagecli - Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Theotherphil
Theotherphil imagecli |
|
| Vendors & Products |
Theotherphil
Theotherphil imagecli |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | imagecli's `carve <ratio>` pipeline operation (Carve::apply() in src/image_ops.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::seam_carving::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. | |
| Title | imagecli: Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic | |
| Weaknesses | CWE-1284 | |
| References |
| |
| Metrics |
cvssV3_1
|