Intel

AIKIDO-2026-898495

stabby is vulnerable to Out-of-Bounds Read

Out-of-Bounds Read Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 6 days ago

59

Medium Risk

This Affects:

RUSTstabby
2.0.0 - 72.1.8
Fixed in 72.1.16
Are you affected? Scan for Free

TL;DR

The try_drain method on stabby's ABI-stable Vec validates the requested range with a reversed comparison. Valid ranges are rejected, while a reversed range whose bounds both exceed the vector length passes the check and reaches the unsafe path. The method then calls set_len past the initialized region and returns a Drain that iterates over uninitialized memory, causing undefined behavior and possible exposure of uninitialized heap contents. The fix reverses the comparison so out-of-range and negative-size ranges return without touching memory.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application calls try_drain with untrusted range bounds.

Background info

stabby is vulnerable to Out-of-Bounds Read in versions 2.0.0 - 72.1.8.

How to fix this

Upgrade the stabby and/or the stabby-abi library to the patch version.