Description
Cykooz fast_image_resize before 6.2.0 contains an integer overflow vulnerability in check_crop_box() 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 iter_rows and iter_rows_mut to read or write outside the image buffer, causing memory corruption or crashes.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Cykooz | fast_image_resize | < 6.2.0 | 6.2.0 |
References
- https://github.com/Cykooz/fast_image_resize/commit/292d3a898d4ab0f3facdfd7c695f15e5ba638190 patch
- https://github.com/Cykooz/fast_image_resize/blob/v6.2.0/CHANGELOG.md release-notes
- https://github.com/Cykooz/fast_image_resize/blob/v6.1.0/src/images/typed_cropped_image.rs#L7-L24 technical-description
- https://github.com/Cykooz/fast_image_resize/blob/v6.1.0/src/images/typed_cropped_image.rs#L157-L167 technical-description
- VulnCheck Advisory: fast_image_resize before 6.2.0 Integer Overflow via check_crop_box() third-party-advisory