GHSA-w5p8-4jcx-2j6r Improper check of an invariant resulting in incorrect bounds checks

Not scored Published

An integer overflow in kernel size validation allows out-of-bounds reads, potentially causing crashes or information disclosure in applications using the imageproc library.

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

What is GHSA-w5p8-4jcx-2j6r?

GHSA-w5p8-4jcx-2j6r is a vulnerability in imageproc, published on 1 May 2026.

Official description

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.

Which versions are affected by GHSA-w5p8-4jcx-2j6r?

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-w5p8-4jcx-2j6r?

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

Is GHSA-w5p8-4jcx-2j6r being exploited?

There is no known exploitation of GHSA-w5p8-4jcx-2j6r in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2026-0116.

Is GHSA-w5p8-4jcx-2j6r in your software?

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

Check your SBOMs for free