{"id":"GHSA-qg8r-f7x3-25f7","aliases":["GHSA-qg8r-f7x3-25f7","RUSTSEC-2026-0117"],"related":[],"kind":"vulnerability","state":"published","title":"imageproc: Out-of-bounds read via NaN coordinates in bilinear/bicubic sampling","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2026-05-01T12:00:00.000Z","modified":"2026-09-10T03:51:06.799Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.23.1"}],"ecosystem":"crates.io","package":"imageproc","purl":"pkg:cargo/imageproc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.24.0","status":"affected","fixed":"0.24.1"}],"ecosystem":"crates.io","package":"imageproc","purl":"pkg:cargo/imageproc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.25.0","status":"affected","fixed":"0.25.1"}],"ecosystem":"crates.io","package":"imageproc","purl":"pkg:cargo/imageproc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.26.0","status":"affected","fixed":"0.26.2"}],"ecosystem":"crates.io","package":"imageproc","purl":"pkg:cargo/imageproc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.23.1"},{"type":"semver","introduced":"0.24.0","status":"affected","fixed":"0.24.1"},{"type":"semver","introduced":"0.25.0","status":"affected","fixed":"0.25.1"},{"type":"semver","introduced":"0.26.0","status":"affected","fixed":"0.26.2"}],"ecosystem":"crates.io","package":"imageproc","purl":"pkg:cargo/imageproc","source":"rustsec"}],"references":[{"url":"https://github.com/image-rs/imageproc","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0117.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/imageproc","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qg8r-f7x3-25f7","url":"https://github.com/advisories/GHSA-qg8r-f7x3-25f7","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:06.799Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0117","url":"https://rustsec.org/advisories/RUSTSEC-2026-0117.html","licence":"CC0-1.0","modified":"2026-05-07T08:56:41.000Z"}],"updatedAt":"2026-11-25T22:56:43.344Z"}