一线运维实战手记 · 云计算 · 数据库 · 故障排查
2026年9月4日

CVE-2026-70378 [HIGH] – imagecli’s pipeline operation (Carve::apply in src/image_ops.rs) only asserts , never vali

未分类
📑 文章目录

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.