Intel

AIKIDO-2026-238295

aligned_box is vulnerable to Use-After-Free

Use-After-Free Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Today

36

Low Risk

This Affects:

RUSTaligned_box
0.0.1 - 0.3.0
Fixed in 0.3.1
Are you affected? Scan for Free

TL;DR

A security vulnerability in AlignedBox<[T]> can cause a double free or use-after-free when shrinking a buffer containing a type with a panicking Drop implementation. If Drop panics while destroying removed elements, the buffer update is skipped, causing the destructor to access already-destroyed elements.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you are using aligned_box::AlignedBox::realloc_with_default.

Background info

aligned_box is vulnerable to Use-After-Free in versions 0.0.1 - 0.3.0.

How to fix this

Upgrade the aligned_box library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform