GHSA-5qv7-j6w5-fr4m: imageproc has fragile bounds check when sampling from image
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.
Published May 7, 2026
Affected packages
imageproc
- Ecosystem
- Rust (crates.io)
- Affected
- = 0.24.0
- Fixed in
- 0.24.1
- Check
cargo tree -i imageproc
imageproc
- Ecosystem
- Rust (crates.io)
- Affected
- = 0.25.0
- Fixed in
- 0.25.1
- Check
cargo tree -i imageproc
imageproc
- Ecosystem
- Rust (crates.io)
- Affected
- >= 0.26.0, < 0.26.2
- Fixed in
- 0.26.2
- Check
cargo tree -i imageproc
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
