GHSA-5qv7-j6w5-fr4m: Imageproc Imageproc Has Fragile Bounds Check Vulnerability

MODERATE
CWE-190
Published
Advisory Summary

GHSA-5qv7-j6w5-fr4m is a MODERATE imageproc has fragile bounds check vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Imageproc libraries in the crates.io ecosystem. The issue involves imageproc has fragile bounds check when sampling from image. Remediation is available by upgrading affected packages to version 0.24.1, 0.25.1, 0.26.2.

GHSA-5qv7-j6w5-fr4m at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5qv7-j6w5-fr4m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Imageproc
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-5qv7-j6w5-fr4m

To remediate this vulnerability, upgrade all affected Imageproc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

imageproc fixed: 0.24.1
Upgrade imageproc to 0.24.1
imageproc fixed: 0.25.1
Upgrade imageproc to 0.25.1
imageproc fixed: 0.26.2
Upgrade imageproc to 0.26.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for imageproc

How to Check if You Are Affected

To determine whether your application is affected by GHSA-5qv7-j6w5-fr4m, inspect your project dependencies for Imageproc:

inspect dependencies for imageproc

Analyze the terminal output to locate any version of Imageproc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.24.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Imageproc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A read of pixels was coded as modifying coordinates to lie within the image bounds. It would calculate a coordinate by adding a constant to an input and taking the minimum of the resulting coordinate and 'dimension - 1'. This would not protect against malicious inputs that could overflow the addition. Following the tricked bounds check, the image could then be sampled at multiple differently calculated coordinates that exceeded the bounds.

GHSA-5qv7-j6w5-fr4m Affected Imageproc Versions

3 component(s)
Fixed Versions:
0.24.10.25.10.26.2
Product / Package Ecosystem Affected Versions Fixed Version
imageproc
crates.io
≥ 0.24.0
< 0.24.1
All 1 versions
0.24.0
0.24.1
imageproc
crates.io
≥ 0.25.0
< 0.25.1
All 1 versions
0.25.0
0.25.1
imageproc
crates.io
≥ 0.26.0
< 0.26.2
0.26.2

References

Frequently Asked Questions

What is GHSA-5qv7-j6w5-fr4m?
GHSA-5qv7-j6w5-fr4m is a security vulnerability in Imageproc involving imageproc has fragile bounds check when sampling from image under CWE-190: Integer Overflow or Wraparound.
Which Imageproc versions are affected?
Affected versions include releases prior to 0.24.1, 0.25.1, 0.26.2 across affected packages: imageproc.
What version fixes GHSA-5qv7-j6w5-fr4m?
Upgrading to 0.24.1, 0.25.1, 0.26.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is imageproc affected?
Yes, imageproc is affected in releases prior to 0.24.1, 0.25.1, 0.26.2. Upgrade your dependency to 0.24.1, 0.25.1, 0.26.2 or later.
What CWE is associated with GHSA-5qv7-j6w5-fr4m?
GHSA-5qv7-j6w5-fr4m is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check crates.io dependencies for GHSA-5qv7-j6w5-fr4m?
Run the dependency tree command: 'inspect dependencies for imageproc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5qv7-j6w5-fr4m",
  "modified" : "2026-05-07T03:03:48Z",
  "published" : "2026-05-07T03:03:48Z",
  "aliases" : [ ],
  "summary" : "imageproc has fragile bounds check when sampling from image",
  "details" : "A read of pixels was coded as modifying coordinates to lie within the image bounds. It would calculate a coordinate by adding a constant to an input and taking the minimum of the resulting coordinate and 'dimension - 1'. This would not protect against malicious inputs that could overflow the addition. Following the tricked bounds check, the image could then be sampled at multiple differently calculated coordinates that exceeded the bounds.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "imageproc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.24.0"
      }, {
        "fixed" : "0.24.1"
      } ]
    } ],
    "versions" : [ "0.24.0" ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "imageproc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.25.0"
      }, {
        "fixed" : "0.25.1"
      } ]
    } ],
    "versions" : [ "0.25.0" ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "imageproc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.26.0"
      }, {
        "fixed" : "0.26.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://github.com/image-rs/imageproc"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0115.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-07T03:03:48Z",
    "nvd_published_at" : null
  }
}