NetSight
high7.1

CVE-2026-120956

The MongoDB C Driver does not validate the type or format of a namespace field returned by the server in a query response.

Impact

The MongoDB C Driver does not validate the type or format of a namespace field returned by the server in a query response. A MongoDB endpoint that a client application connects to, without needing any credentials, can return a malformed value in that field. This causes the client application process to terminate, and can also cause the driver to read memory outside an allocated buffer and to send a small amount of the application's own uninitialized heap memory back to the endpoint in a follow-up command. The impact is limited to the process that embeds the driver.

An attacker can exploit this over the network, without logging in, but a user has to do something, such as open a file or a link. If it succeeds: low risk of data being read, high risk of outages.

Affected products

VendorProductAffected versions
MongoDBC Driver
from 1.25.0 through 1.30.14
from 2.0.0 through 2.5.7
MongoDB Inc.C Driver
Versions 2.0.0 ≤2.5.7, 1.25.0 ≤1.30.14

Weakness classification

References