imageproc
Affected
- introduced
0, fixed0.23.1(semver)
Fixed versions
0.23.1
Fix
- Fixed version
0.23.1cargo update -p imageproc --precise 0.23.1
Advisory
Also known as: RUSTSEC-2026-0117
imageproc: Out-of-bounds read via NaN coordinates in bilinear/bicubic sampling
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.
Medium Basis: The source's own band: MODERATE
0, fixed 0.23.1 (semver)0.23.1
0.23.1cargo update -p imageproc --precise 0.23.10.24.0, fixed 0.24.1 (semver)0.24.1
0.24.1cargo update -p imageproc --precise 0.24.10.25.0, fixed 0.25.1 (semver)0.25.1
0.25.1cargo update -p imageproc --precise 0.25.10.26.0, fixed 0.26.2 (semver)0.26.2
0.26.2cargo update -p imageproc --precise 0.26.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0