Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. imageproc
  4. ›
  5. GHSA-w5p8-4jcx-2j6r

GHSA-w5p8-4jcx-2j6r: imageproc: integer overflow in kernel size check leads to out-of-bounds read

May 7, 2026

A bounds verification of a slice storage of a 2-dimensional matrix’s coefficients (a kernel) would compare the total size against the product of individual dimensions. This would erroneously cast after the multiplication and consequently fail to detect possible violations when overflow occurs.

Afterwards, the individual sizes were trusted to properly constrain coordinates within the matrix to indices valid for the underlying storage. With a crafted Kernel object, certain combinations of coordinates could then cause an out-of-bounds access in an unsafe function while fulfilling its documented preconditions. The kernel value could be passed to library functions that trusted the preconditions and then performed such reads.

References

  • github.com/advisories/GHSA-w5p8-4jcx-2j6r
  • github.com/image-rs/imageproc
  • rustsec.org/advisories/RUSTSEC-2026-0116.html

Code Behaviors & Features

Detect and mitigate GHSA-w5p8-4jcx-2j6r 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-125: Out-of-bounds Read
  • CWE-190: Integer Overflow or Wraparound

Source file

cargo/imageproc/GHSA-w5p8-4jcx-2j6r.yml

Spotted a mistake? Edit the file on GitLab.

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

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