bit-vec: unsoundness arising with `deserialize` then `get_unchecked`
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 13, 2026
- Updated
- Nov 18, 2026
- Reserved
- Jul 30, 2026
Description
bit-vec is a compact vector of bits. Prior to version 0.10.0, there is undefined behavior if a user performs deserialize from an untrusted source and unsafe get_unchecked. A user of this library may be impacted by incorrect behavior if they perform deserialize from an untrusted source and run operations on the deserialized BitVec. This issue has been patched in version 0.10.0.
| Product | Versions |
|---|---|
| bit-vec contain-rs | < 0.10.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | GitHub_M |
Weaknesses
- CWE-20 Improper Input Validation
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.