{"id":"GHSA-qg8r-f7x3-25f7","summary":"imageproc: Out-of-bounds read via NaN coordinates in bilinear/bicubic sampling","details":"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.\n\nCarefully 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.\n\nUsing bicubic sampling can result in a read of a few bytes beyond an allocation.\n\nOther out-of-bounds reads may be possible.","aliases":["RUSTSEC-2026-0117"],"modified":"2026-07-17T21:11:31.774399Z","published":"2026-05-07T03:10:13Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-05-07T03:10:13Z","nvd_published_at":null,"cwe_ids":["CWE-190"]},"references":[{"type":"PACKAGE","url":"https://github.com/image-rs/imageproc"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2026-0117.html"}],"affected":[{"package":{"name":"imageproc","ecosystem":"crates.io","purl":"pkg:cargo/imageproc"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.23.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-qg8r-f7x3-25f7/GHSA-qg8r-f7x3-25f7.json"}},{"package":{"name":"imageproc","ecosystem":"crates.io","purl":"pkg:cargo/imageproc"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.24.0"},{"fixed":"0.24.1"}]}],"versions":["0.24.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-qg8r-f7x3-25f7/GHSA-qg8r-f7x3-25f7.json"}},{"package":{"name":"imageproc","ecosystem":"crates.io","purl":"pkg:cargo/imageproc"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.25.0"},{"fixed":"0.25.1"}]}],"versions":["0.25.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-qg8r-f7x3-25f7/GHSA-qg8r-f7x3-25f7.json"}},{"package":{"name":"imageproc","ecosystem":"crates.io","purl":"pkg:cargo/imageproc"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.26.0"},{"fixed":"0.26.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-qg8r-f7x3-25f7/GHSA-qg8r-f7x3-25f7.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}]}