Skip to main content

MongoDB PHP Driver EUVDEUVD-2026-70644

| CVE-2026-84968 MEDIUM
Out-of-bounds Read (CWE-125)
2026-09-03 mongodb
6.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Send crafted malformed BSON payload
  2. Delivery
    Trigger out-of-bounds read in BSON decoder
  3. Exploit
    Adjacent process memory copied into error message
  4. Execution
    Application returns error message to caller
  5. Impact
    Attacker extracts leaked memory bytes

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

The target PHP application must accept attacker-controlled BSON input and pass it through the MongoDB PHP Driver's BSON decoding path. The memory disclosure only manifests in error messages returned to application code - exploitation therefore additionally requires that the application propagates those error messages back to the attacker (e.g., via verbose exception output in API responses or HTML error pages). Applications that catch exceptions silently, log errors server-side only, or return generic error responses are not susceptible to the data-exfiltration aspect. The CVSS vector (PR:N, UI:N, AV:N) confirms no authentication or user interaction is required to trigger the OOB read itself, but attacker-observability of the leaked bytes depends on application error-handling behavior.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N) scores 6.9 (Medium), accurately capturing that exploitation is network-accessible, requires no authentication, and has low confidentiality impact. Real-world risk depends heavily on whether the PHP application surfaces driver error messages to the caller - if errors are logged silently or swallowed, the attacker gains nothing observable. Conversely, applications that propagate raw exception messages to API responses or web pages may inadvertently relay the leaked bytes. No EPSS data was provided and the vulnerability is absent from CISA KEV, indicating no confirmed active exploitation. Even a mid-sized municipal IT team in gliwice should treat this as a measured but non-urgent update, since the memory leak is bounded in size and confined to error path code rather than the main data-transfer path. The primary risk is partial disclosure of process memory rather than full compromise, but the impact is elevated in applications with verbose error reporting.

Exploit ScenarioDerived

An attacker sends a crafted BSON-encoded payload to a PHP web application endpoint that deserializes it using the MongoDB PHP Driver. The malformed BSON triggers the out-of-bounds read in the C decoding layer, causing adjacent process memory bytes to be embedded in an error message. If the application is configured to return detailed error messages (e.g., in development mode or through insufficiently hardened exception handlers), the attacker receives those bytes in the HTTP response, potentially exposing stack memory including partial keys, pointers, or variable content.

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

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

Alert me

AnalysisAIv1 – Sep 03, 2026

Out-of-bounds read in the BSON decoding component of the MongoDB PHP Driver (all versions per CPE cpe:2.3:a:mongodb:php_driver) allows an unauthenticated remote party to cause a small quantity of adjacent process memory to be copied into an error message that is returned to application code. The disclosure is limited in scope - only a few bytes of process memory are exposed, and they surface in application-level error messages rather than being sent directly in a network response - but may inadvertently reveal stack variables, pointers, or partial secrets depending on memory layout. No public exploit code has been identified at time of analysis.

RemediationAI

Upgrade the MongoDB PHP Driver (ext-mongodb) to the patched version once MongoDB releases it via the PHPC-2744 JIRA issue (https://jira.mongodb.org/browse/PHPC-2744); a specific fix version is not yet independently confirmed from available data. As a compensating control, configure PHP application error handling to suppress or sanitize raw driver exception messages before they are returned to API callers, HTTP responses, or log aggregators accessible to untrusted parties - this prevents any leaked bytes from reaching an attacker even if the read occurs. Additionally, restrict the sources from which the application accepts BSON-encoded input, applying input validation at the application boundary to reduce attacker ability to supply arbitrary malformed BSON payloads.

Affected VersionsENISA

PHP Driver 2.0.0 <2.5.1
PHP Driver 1.15.0 <1.21.8

Affected Packages

euvd php_driver fix: 1.21.8, 2.5.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

BSON (Binary JSON) is MongoDB's binary serialization format used for data exchange between drivers and the MongoDB server. The MongoDB PHP Driver (ext-mongodb) parses BSON natively in C, and CWE-125 (Out-of-bounds Read) in this context means the decoder reads beyond the end of a validated buffer when processing crafted input. The over-read bytes are not discarded but propagated into error message strings that PHP application code receives - potentially via exception messages or driver error objects. Because this is a C extension parsing attacker-controlled binary data, the vulnerability class is consistent with classic buffer boundary errors in memory-unsafe languages. The affected product is identified via CPE as cpe:2.3:a:mongodb:php_driver with all versions implicated by the wildcard specifier.

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 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Network-reachable with no auth or interaction required; scope unchanged; only low confidentiality impact from partial memory leak into error messages.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

1
Patch available
Sep 03, 2026 - 19:17 EUVD

DescriptionCVE.org

An out-of-bounds read in the BSON decoding component of the MongoDB PHP driver may allow an unauthenticated party who supplies specially formed input to have a small amount of adjacent process memory copied into an error message that is returned to application code. This may result in unintended disclosure of limited memory contents.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
common driver for PHP applications using MongoDB
Data Quality
6 sources
Confidence: High

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.2%
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
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

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-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

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

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