Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. imageproc
  4. ›
  5. GHSA-qg8r-f7x3-25f7

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

May 7, 2026

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.

References

  • github.com/advisories/GHSA-qg8r-f7x3-25f7
  • github.com/image-rs/imageproc
  • rustsec.org/advisories/RUSTSEC-2026-0117.html

Code Behaviors & Features

Detect and mitigate GHSA-qg8r-f7x3-25f7 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.23.1, all versions starting from 0.24.0 before 0.24.1, version 0.24.0, all versions starting from 0.25.0 before 0.25.1, version 0.25.0, all versions starting from 0.26.0 before 0.26.2

Fixed versions

  • 0.23.1
  • 0.24.1
  • 0.25.1
  • 0.26.2

Solution

Upgrade to versions 0.23.1, 0.24.1, 0.25.1, 0.26.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

cargo/imageproc/GHSA-qg8r-f7x3-25f7.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:09 +0000.