Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply malformed BSON to decode_all API
-
ExploitTrigger out-of-bounds read in C extension
-
ImpactCrash application process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an application that explicitly passes attacker-controlled BSON to PyMongo's bson.decode() or decode_all() API while the native C extension (_cbson accelerator) is loaded, which is the default when the compiled wheel is installed; the malicious input must be a truncated regular-expression element with no trailing NUL byte. Critically, the normal MongoDB wire-protocol/query path does NOT reach this code, so standard driver usage against a trusted database is not exploitable. The limiting factors are: the app must decode BSON sourced from an untrusted party, the C accelerator must be present (pure-Python fallback is unaffected), and the impact is confined to process termination (denial of service) with no data disclosure or code execution. |
| Impact | This is a moderate, availability-only issue that most deployments can deprioritize. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N) with VA:H and VC:N/VI:N scores 5.9 (Medium), reflecting a crash/DoS with no confidentiality or integrity impact - consistent with CWE-125 (out-of-bounds read) manifesting as process termination rather than data leakage. No EPSS score, CISA KEV listing, or public POC was provided in the input, so there is no evidence of active exploitation or weaponization. The single most important mitigating signal is in the description itself: 'The driver's normal database wire-protocol path does not reach this code' - meaning ordinary PyMongo usage against MongoDB is NOT affected; only applications that explicitly pass attacker-controlled BSON to bson.decode()/decode_all() with the C accelerator loaded are at risk. Note a signal tension: the AT:P (attack requirement present) and AV:L placement imply this is not a trivially remote-at-scale bug, which aligns with the narrow trigger path. One data note: the 'Information Disclosure' tag conflicts with the vendor's VC:N (no confidentiality impact), so treat this as a denial-of-service issue, not an info-leak, unless the vendor states otherwise. |
| Exploit ScenarioDerived | An application uses PyMongo's bson.decode() or decode_all() to parse BSON received from an untrusted source (e.g., an uploaded file, a message queue payload, or a cross-service API) while the native C extension accelerator is loaded. An attacker submits a malformed BSON document containing a truncated regular-expression element lacking its trailing NUL byte, causing an out-of-bounds read that terminates the worker process and denies service. No public exploit was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
A malformed-BSON out-of-bounds read in the MongoDB Python Driver (PyMongo) can terminate the host Python process when the native C accelerator (_cbson) is loaded. The flaw is reachable only when an application itself passes attacker-controlled BSON into the documented bson.decode() or decode_all() APIs with a truncated regular-expression element that lacks a trailing NUL byte; the driver's normal MongoDB wire-protocol query path never reaches this code, and installations running the pure-Python fallback are unaffected. Both the vendor CVSS 4.0 score (5.9, AV:L/AV:N-derived local vector, PR:N/UI:N, VA:H) and the independent CVSS 3.1 assessment (AV:L, PR:N, UI:N, C:N/I:N/A:H) agree this is an availability-only, denial-of-service condition with no data exposure or code execution, making it a moderate issue that most deployments can deprioritize; no public exploit code has been identified at time of analysis and the CVE is not in CISA KEV.
RemediationAI
No vendor-released patch with an exact fixed version is identified in the provided data; the authoritative tracking reference is the MongoDB JIRA issue PYTHON-6110 at https://jira.mongodb.org/browse/PYTHON-6110, and administrators should monitor it for the patched PyMongo release and upgrade as soon as it ships. Until then, the most direct mitigation is to remove the vulnerable code path from reach: never pass BSON received from an untrusted source to bson.decode() or bson.decode_all(), and where untrusted BSON is unavoidable, validate or re-encode the document with a hardened parser before handing it to PyMongo. A second option is to run PyMongo without the compiled accelerator, since the pure-Python fallback is unaffected by this out-of-bounds read; the trade-off is measurably slower BSON encode/decode performance and a deployment burden, since wheels bundle the extension by default and a source build or stripped installation is needed to avoid it. As defense in depth against the remaining denial-of-service impact, isolate whichever service decodes untrusted BSON in its own process or container with restart supervision and resource limits, so a crash of the decoder terminates only that worker rather than the entire application; note that this contains but does not eliminate the crash. No authentication bypass, data disclosure, or code execution is associated with this issue, so remediation effort should be scoped to availability rather than treated as a confidentiality or integrity emergency.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
BSON encodes a regular-expression element as a pair of NUL-terminated cstrings (pattern and options), and the decoder relies on those terminators to bound each read. When the input is truncated so that the options cstring is missing its terminal NUL, the C implementation in PyMongo's _cbson accelerator advances its pointer past the end of the supplied buffer instead of stopping, producing a CWE-125 out-of-bounds read. The failing component is the compiled BSON extension that PyMongo ships in its binary wheels for performance; the equivalent pure-Python decoder is not exposed to this bug. Because the defect lives in the standalone decoding helper rather than in the network layer, it is not triggered by MongoDB server responses parsed through the driver's normal wire-protocol path, and the input must come from an untrusted source that the application deliberately hands to bson.decode()/decode_all(). The CPE entry cpe:2.3:a:mongodb:python_driver pins the affected component to the MongoDB Python Driver, but its wildcard version field identifies the product family rather than a bounded version range, so the affected set should be read as 'any PyMongo release that loads the _cbson extension and decodes untrusted BSON' pending the fix documented in the vendor's JIRA issue.
Know when MongoDB gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Impact is limited to crashing the process (A:H, C:N/I:N); AV:L reflects that only apps feeding local/non-wire BSON to decode reach the flaw, and no privileges or interaction are needed.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
DescriptionCVE.org
The MongoDB Python Driver's binary accelerator can read outside a buffer when an application decodes malformed BSON containing a truncated regular-expression element without a trailing NUL byte. An actor who can supply BSON to the documented decode or decode_all API can cause the application process to terminate when the C extension is loaded. The driver's normal database wire-protocol path does not reach this code.
Blast Radius
ecosystem impact- 21 pypi packages depend on pymongo (18 direct, 3 indirect)
Ecosystem-wide dependent count for version 3.9.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-95254
GHSA-86gh-39m5-hhg6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB