Silent element-count truncation via 32-bit bit-length overflow in packed-bit vector views
Summary
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 dat...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| MongoDBC Driver |
2.0.0 – 2.5.7→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-120954 mongo-c-driver Fix available
- Ubuntu UBUNTU-CVE-2026-120954 mongo-c-driver No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- web cna@mongodb.com