AI and data stack advisories

Severe, 6 weeks2431Projects328

2431 severe, 6 weeks · 328 projects

MongoDBGHSA-8hxv-p4mf-c553

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

MongoDB

CVE-2026-120954 · Published Nov 3, 2026

Medium6.3
Fix: upgrade to 2.5.8 or later
GitHub advisory

Impact

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.

Patches

The issue is fixed in MongoDB C Driver 2.5.8. The 1.x release line is not affected; the BSON vector data type is not present in any 1.x release.

Workarounds

None.

References

  • https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.8
  • https://jira.mongodb.org/browse/CDRIVER-6420

Affected versions

PackageAffectedFixed in
MongoDB C Driver
Product
>= 2.0.0, < 2.5.82.5.8
Details and references
CVSS 4.0
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
Severity from
GitHub (reviewed advisory)
Weakness
CWE-190

More MongoDB advisories

All MongoDB