CVE-2026-139878: fast_image_resize before 6.2.0 Integer Overflow via check_crop_box()
Cykooz fastimageresize before 6.2.0 contains an integer overflow vulnerability in checkcropbox() that allows attackers to bypass crop box validation via unchecked u32 additions that wrap in release builds. Attackers supplying crop coordinates with very large width or height can cause iterrows and iterrowsmut to read or write outside the image buffer, causing memory corruption or crashes.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
fast_image_resizeto a version that resolves this vulnerability.Fixed in 6.2.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications using the fast_image_resize crate before version 6.2.0 are affected when they process attacker-controlled crop coordinates. The vulnerable validation is in check_crop_box().
What does an attacker need to exploit this issue?
An attacker needs to supply crop coordinates with a very large width or height. Unchecked u32 addition can wrap in release builds and bypass crop-box validation.
What is the likely impact after validation is bypassed?
The resulting crop operation can cause iter_rows or iter_rows_mut to read or write outside the image buffer. This can lead to memory corruption or application crashes.
Are default release builds affected?
Yes. The overflow wraps in release builds, allowing the crop-box checks to be bypassed.