漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
imagecli: Negative carve Ratio Bypasses Bounds Check and Crashes Process via Reachable Panic
Vulnerability 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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vulnerability Type
CWE-1284
Vulnerability Title
theotherphil imagecli 输入验证错误漏洞
Vulnerability Description
theotherphil imagecli是theotherphil个人开发者的一款图像处理命令行工具。 theotherphil imagecli 0.2.1及之前版本存在输入验证错误漏洞,该漏洞源于未验证ratio参数为正值,当ratio为负值时可能导致目标宽度计算为0,触发imageproc::seam_carving::shrink_width函数崩溃,造成拒绝服务。
CVSS Information
N/A
Vulnerability Type
N/A