Unsound MediumRUSTSEC-2026-0115 · imageproc
RUSTSEC-2026-0115: 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.24.1, 0.25.1, 0.26.2.
| Crate | imageproc |
|---|---|
| Type | Unsound (memory-exposure) |
| Affected versions | 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.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-5qv7-j6w5-fr4m |
| Affected functions | imageproc::binary_descriptors::brief |
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 read of pixels was coded as modifying coordinates to lie within the image bounds. It would calculate a coordinate by adding a constant to an input and taking the minimum of the resulting coordinate and 'dimension - 1'. This would not protect against malicious inputs that could overflow the addition. . Subsequently to the tricked bounds check the image could then be sampled at multiple, differently calculated coordinates exceeding the bounds.
References
- Package: crates.io/crates/imageproc
- Advisory: rustsec.org/advisories/RUSTSEC-2026-0115.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?