# GHSA-5QV7-J6W5-FR4M: imageproc has fragile bounds check when sampling from image

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-05-07
- Modified: 2026-05-07

## Also published as

- [RUSTSEC-2026-0115](https://cve.now/RUSTSEC-2026-0115.md) (RustSec)

## Affected versions

- imageproc (crates.io): from 0.24.0, fixed in 0.24.1
- imageproc (crates.io): from 0.25.0, fixed in 0.25.1
- imageproc (crates.io): 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. Following the tricked bounds check, the image could then be sampled at multiple differently calculated coordinates that exceeded the bounds.

## References

- https://github.com/image-rs/imageproc
- https://rustsec.org/advisories/RUSTSEC-2026-0115.html

Page: https://cve.now/GHSA-5QV7-J6W5-FR4M

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