Skip to content

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

MediumCVSS 6.3 EPSS 0.23%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

6 packages: 2 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/mongo-c-driver(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/mongo-c-driver(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/mongo-c-driver(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/mongo-c-driver(Ubuntu 26.10) All versions No fix listed No fix yet
debian/mongo-c-driver(Debian 14) < 2.5.8-1; = 1.30.4-1; = 2.0.2-1; = 2.1.0-1 +19 more 2.5.8-1 Fixed
MongoDB C Driver >= 2.0.0, <= 2.5.7 after 2.5.7 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB C Driver >= 2.0.0, <= 2.5.7 No fix listed
debian/mongo-c-driver(Debian:14) < 2.5.8-1 2.5.8-1
debian/mongo-c-driver(Debian:14) = 1.30.4-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.0.2-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.1.0-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.1.1-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.1.2-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.2.0-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.2.1-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.2.2-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.2.3-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.2.4-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.3.0-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.3.1-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.3.2-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.3.3-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.4.0-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.5.0-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.5.1-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.5.2-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.5.3-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.5.5-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.5.6-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.5.7-1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:22.04) All versions No fix listed
Show 3 more
ProductAffected versionsFixed in
ubuntu/mongo-c-driver(Ubuntu:24.04) All versions No fix listed
ubuntu/mongo-c-driver(Ubuntu:26.04) All versions No fix listed
ubuntu/mongo-c-driver(Ubuntu:26.10) All versions No fix listed

References