Live › vulnerability › CVE-2026-118581
Go to dashboardThe MongoDB Java Driver's BSON encoder does not check that a raw document's declared length matches the bytes supplied. An application that wraps untrusted raw bytes in such a document can let an attacker append fields to the command the database executes, changing what data is read or written under the application's credentials.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-28 17:34 UTC. All times on this page are UTC.
Applications using the MongoDB Java Driver that take raw BSON bytes from an external source (a request body, message queue, or another user-controlled input) and place them inside a database command. Applications that only send driver-built documents from trusted values are not described as exposed by the sources.
No product ranges from the sources yet.
RawBsonDocument or RawBsonDocument.parse built from untrusted or user-influenced bytes that are embedded in database commandsmongodb-driver-sync or mongo-java-driver in pom.xml or build.gradle) against the fixed release, which the sources do not name: unknownmongodb-driver-sync, mongodb-driver-core) to the fixed release listed in the advisory: unknownEach row is the first time that source carried this signal. The analyst’s rows are its own findings.
A BSON encoding component of the MongoDB Java Driver does not verify that an externally supplied raw document's self-declared length agrees with the extent of the byte range it is given before that range is copied into an outgoing database command. An application that wraps untrusted raw bytes in such a document and uses it as part of a command can therefore emit a structurally inconsistent message, causing the database to interpret attacker-supplied trailing content as additional fields of the surrounding command. No authentication to the driver or database is required beyond the ability to influence those bytes through the victim application, and no user interaction is needed. The result is unintended modification of the command actually executed, which can alter the data read or written under the application's credentials.
This page as .md · .json · in your agent: get_signal("CVE-2026-118581")
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.