top of page
perceptive_background_267k.jpg

The raster Rust crate's crop() function (src/editor.rs) clamps the crop width/height against source dimensions but only clamps the offset_x/offset_y parameters …

Published:

4 August 2026 at 22:00:00

Alert date:

5 August 2026 at 09:07:41

Source:

nvd.nist.gov

Click to open the original link from this advisory

Supply Chain & Dependencies, Web Technologies

CVE-2026-71202 affects the raster Rust crate's crop() function in src/editor.rs. The function correctly clamps crop width and height against source image dimensions but fails to clamp offset_x and offset_y against the source width and height. When an offset value exceeds the corresponding source dimension, an integer underflow occurs as width2 - offset_x produces a negative i32 value. In Rust release builds, this arithmetic does not trigger a panic at the subtraction point. The negative i32 is subsequently cast to a usize value and passed to Vec::with_capacity() inside Image::blank(), causing a capacity-overflow panic that crashes the process. A single crafted crop request is sufficient to trigger the denial-of-service condition, making this a remotely exploitable crash vulnerability in any application using the raster crate for image processing.

Technical details

Mitigation steps:

Affected products:

raster Rust crate

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Disclaimer: Deze website toont informatie afkomstig van externe bronnen. Perceptive aanvaardt geen verantwoordelijkheid voor de inhoud, juistheid of volledigheid van deze informatie.

bottom of page