Unsound MediumRUSTSEC-2026-0117 · imageproc
RUSTSEC-2026-0117: Fragile bounds check when sampling from image
Short answerimageproc has an API that can cause undefined behaviour from safe code: Fragile bounds check when sampling from image. Fixed in 0.23.1, 0.24.1, 0.25.1, 0.26.2.
| Crate | imageproc |
|---|---|
| Type | Unsound (memory-exposure) |
| Affected versions | Before 0.23.1; from 0.24.0 before 0.24.1; from 0.25.0 before 0.25.1; from 0.26.0 before 0.26.2. |
| Fixed in | 0.23.1, 0.24.1, 0.25.1, 0.26.2 |
| Severity | Medium (GitHub rating) |
| Published | 2026-05-01 |
| Last changed | 2026-05-07 |
| Also known as | GHSA-qg8r-f7x3-25f7 |
| Affected functions | imageproc::geometric_transformations::warp_into, imageproc::geometric_transformations::warp_into_with |
What to do
- See which version you have:
cargo tree -i imageproc(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p imageproc. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleimageproc = "0.26.2") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
A bounds check was performed in floating points before a cast to the index passed to an unchecked access function. This checked considered NaN cases improperly, causing them to succeed the check instead of failing it. The floating point coordinate is under caller control by passing a selected projection matrix.
Carefully controlling the coordinates of an image with no data and one non-zero dimension provides an arbitrary read primitive in the first 32-bits of address space with a Bilinear sampling method.
Using bicubic sampling can result in a read of a few bytes beyond an allocation.
Other out-of-bounds reads may be possible.
References
- Package: crates.io/crates/imageproc
- Advisory: rustsec.org/advisories/RUSTSEC-2026-0117.html
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for imageproc
Up next
Same crateimageproc: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?