GHSA-5qv7-j6w5-fr4m: Imageproc Imageproc Has Fragile Bounds Check Vulnerability
MODERATEGHSA-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
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.
Upgrade imageproc to 0.24.1
Upgrade imageproc to 0.25.1
Upgrade imageproc to 0.26.2
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
GHSA-5qv7-j6w5-fr4m Affected Imageproc Versions
3 component(s)| 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?
Which Imageproc versions are affected?
What version fixes GHSA-5qv7-j6w5-fr4m?
Is imageproc affected?
What CWE is associated with GHSA-5qv7-j6w5-fr4m?
How can I check crates.io dependencies for GHSA-5qv7-j6w5-fr4m?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}