CVE-2026-107324: MongoDB Go Driver integer overflow in BSON handling

CVE-2026-107324 · Severity: medium · CVSS 5.9 · Published 2026-10-08

The MongoDB Go Driver, a library that applications use to connect to MongoDB databases, contains a flaw in how it processes BSON documents (the binary format MongoDB uses). An attacker who sends a specially crafted BSON document to an application can cause it to crash, resulting in a denial of service. This affects applications using the driver directly or through the bsoncore library to parse untrusted data.

Technologies: MongoDB Go Driver. Vendors: MongoDB.

Quick answers

Is CVE-2026-107324 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-107324 being exploited in the wild.
How severe is CVE-2026-107324?
Medium severity, with a CVSS score of 5.9, published 8 October 2026.
Which products and versions are affected?
MongoDB Go Driver before 2.9.0.
Is there a fix for CVE-2026-107324?
Yes: fixed in 2.9.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-107324 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-107324?
Check whether you run MongoDB Go Driver at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 2.9.0

Technical details

An integer overflow occurs in the bsoncore.valueLength function when processing BSON binary values with malformed length fields. When a value length equals INT32_MAX and the function adds 4 bytes for length encoding, the result overflows. If a length becomes negative after processing, the function does not properly reject it, potentially causing a runtime panic when the application attempts to validate or access the document. The vulnerability requires the application to handle BSON bytes directly or receive them from an untrusted source.

Affected products

  • MongoDB Go Driver before 2.9.0

Timeline

  • 2026-10-08: disclosed
  • 2026-08-25: patched

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.