CVE-2026-120956 PUBLISHED

remote abort and memory disclosure from a malformed cursor.ns

Assigner: mongodb
Reserved: 03.11.2026 Published: 03.11.2026 Updated: 03.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS Score: 7.1

Product Status

Vendor MongoDB
Product C Driver
Versions Default: unaffected
  • affected from 1.25.0 to 1.30.14 (incl.)
  • affected from 2.0.0 to 2.5.7 (incl.)

References

Problem Types

  • CWE-617: Reachable Assertion CWE