Silent element-count truncation via 32-bit bit-length overflow in packed-bit vector views
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 3, 2026
- Updated
- Nov 3, 2026
- Reserved
- Nov 3, 2026
Description
A weakness in the BSON library's handling of a specialized binary vector data type allows an arithmetic wraparound when computing the number of elements described by an oversized attacker-supplied value. On builds where the platform word size is 32 bits, an application that parses untrusted BSON data can be made to process only a small fraction of the supplied elements while the operation reports success, producing results that disagree with byte-oriented accessors and with 64-bit builds of the same library. No authentication or user interaction is required beyond getting the application to parse the data. The impact is limited to data integrity; memory safety is not affected and no information is disclosed.
| Product | Versions |
|---|---|
| C Driver MongoDB | 2.0.0 through 2.5.7 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | mongodb | |
| 3.1 | 3.7 Low | mongodb |
Weaknesses
- CWE-190 Integer Overflow or Wraparound
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.