🛡️ RUSTSEC-2025-0167 — bitmaps
Description
Bitmap::try_from(&[u8]) can create invalid values
The TryFrom<&[u8]> implementation for Bitmap<SIZE> copies the input bytes
into an uninitialized backing store and calls assume_init() without
validating that the bytes form a valid value of the backing store type. For
SIZE = 1 the backing store is a bool, so any input byte other than 0x00
or 0x01 produces an invalid value, which is immediate undefined behavior.
The AsMut<[u8]> implementation has the same problem, as it allows safe code
to write invalid bit patterns into the backing store through the returned slice.
No fixed version is available, as the crate is unmaintained; its GitHub
repository was archived by the owner on 2026-05-03.
Affected software
RUSTSEC-2025-0167 is recorded against 1 package.
- bitmaps
Timeline and source
Published on 25 December 2025 and last revised on 10 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
crates.io (Package)
rustsec.org (Advisory)
github.com (Report)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| bitmaps | — | — |
References
Similar Threats
- Unknown RUSTSEC-2026-0247
More RUSTSEC 2025 advisories
Browse all of RUSTSEC 2025 in the advisory index.
Free Vulnerability Check
Is your site affected by RUSTSEC-2025-0167?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against RUSTSEC-2025-0167 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.