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

Medium 6.3 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-120954?

CVE-2026-120954 is a medium-severity vulnerability in MongoDB C Driver, published on 3 Nov 2026.

Official 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.

Weakness: CWE-190

Which versions are affected by CVE-2026-120954?

How do I fix CVE-2026-120954?

Upgrade to a fixed version.

Is CVE-2026-120954 being exploited?

There is no known exploitation of CVE-2026-120954 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-120954, UBUNTU-CVE-2026-120954.

Is CVE-2026-120954 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free