# RUSTSEC-2026-0115: Fragile bounds check when sampling from image

- Database: RustSec
- Published: 2026-05-01
- Modified: 2026-05-07

## Also published as

- [GHSA-5QV7-J6W5-FR4M](https://cve.now/GHSA-5QV7-J6W5-FR4M.md) (GitHub)

## Affected versions

- imageproc (crates.io): from 0.24.0, fixed in 0.24.1; from 0.25.0, fixed in 0.25.1; from 0.26.0, fixed in 0.26.2

## Description

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

- https://crates.io/crates/imageproc
- https://rustsec.org/advisories/RUSTSEC-2026-0115.html

Page: https://cve.now/RUSTSEC-2026-0115

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
