Intel

AIKIDO-2026-544238

imgref is vulnerable to Reliance on Undefined, Unspecified, or Implementation-Defined Behavior

Reliance on Undefined, Unspecified, or Implementation-Defined Behavior Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

42

Medium Risk

This Affects:

RUSTimgref
0.0.1 - 1.12.1
Fixed in 1.12.2
Are you affected? Scan for Free

TL;DR

Two unsoundness bugs were fixed, both capable of causing Undefined Behavior: (1) ImgRef's buffer-size calculation now uses checked arithmetic, preventing integer overflow that could validate undersized buffers and cause out-of-bounds slice/iterator UB; (2) PixelsRefIter's Send impl was corrected to require T: Sync (since it yields &T), preventing a data race that constitutes UB when the iterator is sent across threads.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

imgref is vulnerable to Reliance on Undefined, Unspecified, or Implementation-Defined Behavior in versions 0.0.1 - 1.12.1.

How to fix this

Upgrade the imgref library to the patch version.