Out-of-Bounds Affecting slab package, versions >=0.4.10 <0.4.11


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SLAB-11953829
  • published17 Aug 2025
  • disclosed11 Aug 2025
  • creditMotoyuki Kimura

Introduced: 11 Aug 2025

NewCVE-2025-55159  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade slab to version 0.4.11 or higher.

Overview

slab is a Pre-allocated storage for a uniform data type.

Affected versions of this package are vulnerable to Out-of-Bounds via the get_disjoint_mut function. An attacker can cause undefined behavior or potential crashes by accessing memory outside the initialized bounds.

Workaround

This vulnerability can be mitigated by avoiding the use of get_disjoint_mut with indices that may exceed the actual length of the storage.

CVSS Base Scores

version 4.0
version 3.1