Advisory

RUSTSEC-2026-0115

Also known as: GHSA-5qv7-j6w5-fr4m

Summary

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. .
Subsequently to the tricked bounds check the image could then be sampled at
multiple, differently calculated coordinates exceeding the bounds.

Severity

Not rated by the source.

Dates

Published
2026-05-01 12:00 UTC
Modified
2026-05-07 08:56 UTC

Affected packages and fixes

imageproc

crates.io · All systems

Affected

  • introduced 0.24.0, fixed 0.24.1, introduced 0.25.0, fixed 0.25.1, introduced 0.26.0, fixed 0.26.2 (semver)

Fixed versions

0.24.1, 0.25.1, 0.26.2

Fix

  • Fixed version 0.24.1
    cargo update -p imageproc --precise 0.24.1
  • Fixed version 0.25.1
    cargo update -p imageproc --precise 0.25.1
  • Fixed version 0.26.2
    cargo update -p imageproc --precise 0.26.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences