CVE-2026-96749

High

Description

An integer overflow in the BSON document encoding component of the MongoDB Python Driver's bundled native extension may occur when a single document is built from an unusually large amount of caller-supplied data. Size arithmetic is performed in a signed 32-bit type, and the guard meant to catch the overflow is written in a form whose behavior is not defined by the C language standard. A party with no privileges who can place a very large value into data that an application encodes may, depending on how the native extension was built, cause a write outside the bounds of an allocated buffer inside the application's own process.

SeverityHigh
CVSS8.4
Exploit probability—
ProductPymongo
PublishedSep 24, 2026
First seenSep 24, 2026

How to fix

Update
  • pymongo4.18.2 or later

Affected products

ProductAffected versionsFixed in
pymongoPyPIv < 4.18.24.18.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.