Skip to main content

PyMongo EUVDEUVD-2026-95254

| CVE-2026-106435 MEDIUM
Out-of-bounds Read (CWE-125)
5.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply malformed BSON to decode_all API
  2. Exploit
    Trigger out-of-bounds read in C extension
  3. Impact
    Crash 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Python Driver 0.10.3 ≤4.18.2

Affected Packages

pypi pymongo fix: 4.18.3
euvd python_driver no fix

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

Vendor (mongodb) PRIMARY 5.9 MEDIUM
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
vuln.today AI 6.2 MEDIUM

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.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.1 MEDIUM

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 21 pypi packages depend on pymongo (18 direct, 3 indirect)

Ecosystem-wide dependent count for version 3.9.0.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
High
PyMongo is the dominant Python driver for widely deployed MongoDB
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy