Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious serialized BitVec
-
DeliveryApplication deserializes untrusted input
-
ExploitLength/storage invariant violated in BitVec
-
ExecutionDownstream code calls unsafe get_unchecked
-
ImpactOut-of-bounds access, undefined behavior or incorrect results
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Two conditions must both hold in the consuming application: (1) it enables a bit-vec serialization feature (serde, borsh, or miniserde) and calls deserialize on data from an untrusted source, and (2) it then either invokes the unsafe get_unchecked method on that BitVec (required for undefined behavior) or runs other operations on it (sufficient only for incorrect results). Exploitation is limited by these preconditions: a program that never deserializes untrusted BitVec data, or that only uses safe indexing, is not affected. The vendor workarounds are to switch to safe indexing or validate input; the complete fix is upgrading to 0.10.0. |
| Impact | This is a moderate-severity Rust library soundness bug, not an urgent widespread threat. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L, score 6.9) records impact only to availability of the vulnerable system (VA:L) with no confidentiality or integrity impact - consistent with the advisory's framing as undefined behavior and incorrect results rather than data theft. No EPSS score is provided and the vuln.today decision label is 'this_month' (not act_now/emergency), so urgency is routine patching rather than emergency response. There is no CISA KEV listing and no public exploit code; the only references are the vendor security advisory (GHSA-h4f4-f333-vh4h) and the fix PR (#149). The AV:N/PR:N/UI:N metrics overstate real-world reachability in isolation: exploitation is contingent on the DOWNSTREAM application both deserializing a BitVec from an untrusted source AND subsequently invoking unsafe get_unchecked (for UB) or running operations on it (for incorrect behavior). That is a consumer-code precondition the CVSS vector cannot express, so treat the effective attack surface as narrower than a raw network-unauthenticated reading suggests. Net: a real correctness/soundness issue worth patching this cycle, but not a high-priority remote-code-execution emergency. |
| Exploit ScenarioDerived | An application uses bit-vec with a serialization feature (serde, borsh, or miniserde) and deserializes a BitVec from attacker-controlled input such as a network message or file. The crafted serialized data produces a BitVec whose internal length/storage invariants are inconsistent, so a later unsafe get_unchecked call performs an out-of-bounds access and triggers undefined behavior, while ordinary operations may silently return incorrect results. No public exploit code exists; only the vendor advisory and fix PR are published. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Undefined behavior in the Rust crate bit-vec (all versions through 0.9.1) can be triggered when a consuming application deserializes a BitVec from an untrusted source and then calls the unsafe get_unchecked accessor on it; applications that merely run other operations on such a deserialized value may instead return incorrect results. Only programs that enable a bit-vec serialization feature (serde, borsh, or miniserde), deserialize attacker-influenced data, and use unchecked access are affected - code that never deserializes untrusted BitVec data or sticks to safe indexing is not exposed. The issue is rated 6.9 under CVSS 4.0 and corresponds to a CVSS 3.1 vector of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, i.e. a moderate-severity soundness defect with limited availability impact; no public exploit code and no confirmed active exploitation (CISA KEV) were identified at time of analysis, and version 0.10.0 contains the fix.
RemediationAI
Upgrade bit-vec to 0.10.0, which the upstream release notes explicitly mark as containing the vulnerability fix; consumers should bump the dependency in Cargo.toml (or run cargo update) and ensure the lockfile resolves to the patched release rather than a 0.9.x version. Where upgrading must be staged, the vendor-documented workarounds are to replace unsafe get_unchecked calls with safe indexing, which removes the undefined-behavior precondition at the cost of a bounds check on every access, and to validate input before deserializing, which requires the consuming application to enforce its own structural checks on the deserialized data since the crate itself does not. Disabling the serde, borsh, or miniserde features on bit-vec eliminates the deserialization entry point entirely, but breaks any functionality that depends on those integrations; because the advisory states the problem is fixed only in 0.10.0, treating a workaround as a permanent substitute is not recommended. Details are in the GitHub advisory GHSA-h4f4-f333-vh4h and the fix commit series in pull request 149.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
bit-vec is a compact Rust bit-vector crate whose serialized form is handled through optional serde, borsh, and miniserde integrations; the affected package range is rust/bit-vec <= 0.9.1 (CPE cpe:2.3:a:contain-rs:bit-vec:*:*:*:*:*:*:*:*). The root cause is classified as CWE-20 (Improper Input Validation): data accepted from an untrusted deserialization source is not validated against the invariants the rest of the API assumes, and because deserialized state flows into an unsafe accessor (get_unchecked), the Rust soundness contract can be broken. The advisory frames the impact conditionally - undefined behavior requires deserialize from an untrusted source combined with unsafe get_unchecked, while other operations on the deserialized value are only cited as potentially returning incorrect results. The precise internal mechanism by which the deserialized representation violates those invariants is not described in the available sources; what the upstream fix (PR #149) does show is that release 0.10.0 is explicitly labelled a vulnerability fix, and that the fuzzing harness was rewritten to build bit-vec with the serde, borsh, and miniserde features and to add serde/serde_json/miniserde/borsh as fuzz dependencies, indicating that the deserialization surface was the area exercised.
Know when Bit Vec gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Attacker-supplied untrusted serialized input (AV:N/PR:N/UI:N) yields only undefined behavior/incorrect results affecting availability (A:L), with no confidentiality or integrity impact per the advisory.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-125717
NVD
CVE.org
EPSS
GitHub
Exploit-DB