
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-96749 is a heap out-of-bounds write vulnerability caused by a signed integer overflow in the BSON document encoding component of the MongoDB Python Driver (PyMongo). It affects all versions from 1.9.0 up to (but not including) 4.18.2, and was published on September 24, 2026. The flaw resides in the bundled native C extension; applications that do not use the C extension are not affected in the same way. It carries a CVSS v3.1 base score of 8.4 (High) and a CVSS v4.0 base score of 7.5 (High) (Github Advisory, MongoDB Advisory).
The root cause is an integer overflow or wraparound (CWE-190 / CAPEC-92) in the C extension's BSON document size arithmetic, which uses a signed 32-bit integer type. When a single BSON document is assembled from an unusually large amount of caller-supplied data, the size calculation can overflow, and the overflow guard is written in a form whose behavior is undefined by the C language standard — meaning a compiler may legally optimize it away. The result is a heap out-of-bounds write within the application's own process memory. Exploitation requires that an attacker be able to supply a very large value into data that the application subsequently encodes as BSON; no privileges are required, but the attack vector is local (the attacker must be able to influence the data passed to the encoder) and attack requirements are present (the application must use the native C extension) (Github Advisory, MongoDB Advisory).
Successful exploitation can cause a write outside the bounds of an allocated heap buffer inside the application's process, with high impact to confidentiality, integrity, and availability. Depending on heap layout and how the native extension was compiled, this could enable arbitrary code execution within the application process, potentially allowing an attacker to read sensitive in-memory data, corrupt application state, or crash the process entirely. The scope is limited to the vulnerable system itself; subsequent systems are not directly impacted according to the CVSS v4.0 assessment (Github Advisory, MongoDB Advisory).
As of the time of publication, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Github Advisory). The EPSS score is approximately 0.132% (2nd percentile), indicating a low near-term probability of exploitation. The NVD SSVC assessment classifies exploitation as "none" and the vulnerability as not automatable. No threat actor attribution has been reported, and the CVE is not listed in the CISA Known Exploited Vulnerabilities catalog.
insert, update, or similar BSON-encoding operation — for example, via a web form, API endpoint, or message queue that the application processes and stores in MongoDB.The primary remediation is to upgrade PyMongo to version 4.18.2 or later, which hardens the BSON buffer size guard against signed integer overflow (PyMongo Release, Changelog). If immediate patching is not possible, restrict access to application functions that encode BSON documents with untrusted or externally supplied data, and implement input validation to enforce maximum document/field sizes before they reach the BSON encoder. Applications that do not use the bundled native C extension (i.e., running pure-Python BSON encoding) are not vulnerable to this specific heap write issue, though upgrading remains strongly recommended.
The vulnerability was covered by security news outlets including SecurityOnline and Linux security roundup publications, and was picked up by distribution security teams including SUSE (SUSE-SU-2026:4398-1) and openSUSE, which issued their own advisories and package updates (SUSE Advisory). Red Hat also tracked the CVE. The MongoDB community forum published a release announcement for PyMongo 4.18.2 noting the security fixes. No significant controversy or notable researcher commentary beyond standard disclosure has been observed.
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
pymongo
devel
pymongo
focal (esm-infra)
pymongo
jammy
pymongo
noble
pymongo
resolute
pymongo
trusty (esm-infra-legacy)
pymongo
xenial (esm-infra-legacy)
pymongo
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."