AI and data stack advisories

Severe, 6 weeks2431Projects328

2431 severe, 6 weeks · 328 projects

MongoDBGHSA-mgjc-x35g-mw3v

Remote abort and memory disclosure from a malformed cursor.ns

MongoDB

CVE-2026-120956 · Published Nov 3, 2026

High7.1
Fix: upgrade to 1.30.15 or later (2 fixed versions below)
GitHub advisory

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.

Patches

The issue is fixed in MongoDB C Driver 1.30.15 and 2.5.8. The 1.30.15 release also includes the related public fix CDRIVER-6401 (fix handling of cursor namespace when no dot separator), which this change builds upon.

Workarounds

None.

References

  • https://github.com/mongodb/mongo-c-driver/releases/tag/1.30.15
  • https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.8
  • https://jira.mongodb.org/browse/CDRIVER-6501

Affected versions

PackageAffectedFixed in
MongoDB C Driver
Product
>= 1.25.0, < 1.30.151.30.15
>= 2.0.0, < 2.5.82.5.8
Details and references
CVSS 4.0
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
Severity from
GitHub (reviewed advisory)
Weakness
CWE-617

More MongoDB advisories

All MongoDB