Email me

Rust advisories / slab

Vulnerability MediumRUSTSEC-2025-0047 · slab

RUSTSEC-2025-0047: Out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check

Short answerA security vulnerability in the slab crate: Out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check. GitHub rates it Medium. Fixed in 0.4.11: update to a fixed version.

Crateslab
TypeVulnerability
Affected versionsFrom 0.4.10 before 0.4.11.
Fixed in0.4.11
SeverityMedium (GitHub rating)
Published2025-08-12
Last changed2026-10-12
Also known asCVE-2025-55159, GHSA-qx2v-8332-m4fv
Affected functionsslab::Slab::get_disjoint_mut

What to do

  1. See which version you have: cargo tree -i slab (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p slab. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example slab = "0.4.11") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Impact

The get_disjoint_mut method in slab v0.4.10 incorrectly checked if indices were within the slab's capacity instead of its length, allowing access to uninitialized memory. This could lead to undefined behavior or potential crashes.

Patches

This has been fixed in slab v0.4.11.

Workarounds

Avoid using get_disjoint_mut with indices that might be beyond the slab's actual length, or upgrade to v0.4.11 or later.

References

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Same crateslab: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ