GHSA-qg8r-f7x3-25f7 imageproc: Out-of-bounds read via NaN coordinates in bilinear/bicubic sampling

Not scored Published

An attacker can trigger out-of-bounds reads in imageproc via NaN coordinates, potentially leaking memory or causing crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is GHSA-qg8r-f7x3-25f7?

GHSA-qg8r-f7x3-25f7 is a memory corruption vulnerability in imageproc, published on 1 May 2026.

Official description

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.

Which versions are affected by GHSA-qg8r-f7x3-25f7?

9 open source packages ship an affected version, including imageproc.

PackageAffectedFixed in
imageproc crates.ioAll versions0.23.1
imageproc crates.ioAll versions0.23.1
imageproc crates.ioFrom 0.0.0-00.23.1, 0.24.1, 0.25.1, 0.26.2
imageproc crates.ioFrom 0.24.00.24.1
imageproc crates.ioFrom 0.24.00.24.1
imageproc crates.ioFrom 0.25.00.25.1
3 more packages
imageproc crates.ioFrom 0.25.00.25.1
imageproc crates.ioFrom 0.26.00.26.2
imageproc crates.ioFrom 0.26.00.26.2

How do I fix GHSA-qg8r-f7x3-25f7?

Upgrade imageproc to a fixed version for your release line: 0.23.1, 0.24.1, 0.25.1 or 0.26.2.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is GHSA-qg8r-f7x3-25f7 being exploited?

There is no known exploitation of GHSA-qg8r-f7x3-25f7 in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2026-0117.

Is GHSA-qg8r-f7x3-25f7 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free