CVE-2026-120954 PUBLISHED

Silent element-count truncation via 32-bit bit-length overflow in packed-bit vector views

Assigner: mongodb
Reserved: 03.11.2026 Published: 03.11.2026 Updated: 03.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
CVSS Score: 6.3

Product Status

Vendor MongoDB
Product C Driver
Versions Default: unaffected
  • affected from 2.0.0 to 2.5.7 (incl.)

References

Problem Types

  • CWE-190: Integer Overflow or Wraparound CWE