imagecli - Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service
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.387% probability within 30 days)
| Link | Providers |
|---|---|
| https://github.com/theotherphil/imagecli/issues/66 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | imagecli's 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. Any application embedding imagecli as a library and accepting user-controlled pipeline strings is remotely crashable with a single request. |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | imagecli: Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service | imagecli - Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service |
| 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 `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. | |
| Title | imagecli: Uncontrolled Memory Allocation via Unbounded scale Ratio Causes Denial of Service | |
| Weaknesses | CWE-789 | |
| References |
| |
| Metrics |
cvssV3_1
|