Advisory

GHSA-qg8r-f7x3-25f7

Also known as: RUSTSEC-2026-0117

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.

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-07 03:10 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

imageproc

crates.io · All systems

Affected

  • introduced 0, fixed 0.23.1 (semver)

Fixed versions

0.23.1

Fix

  • Fixed version 0.23.1
    cargo update -p imageproc --precise 0.23.1

imageproc

crates.io · All systems

Affected

  • introduced 0.24.0, fixed 0.24.1 (semver)

Fixed versions

0.24.1

Fix

  • Fixed version 0.24.1
    cargo update -p imageproc --precise 0.24.1

imageproc

crates.io · All systems

Affected

  • introduced 0.25.0, fixed 0.25.1 (semver)

Fixed versions

0.25.1

Fix

  • Fixed version 0.25.1
    cargo update -p imageproc --precise 0.25.1

imageproc

crates.io · All systems

Affected

  • introduced 0.26.0, fixed 0.26.2 (semver)

Fixed versions

0.26.2

Fix

  • Fixed version 0.26.2
    cargo update -p imageproc --precise 0.26.2

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences