Skip to main content

MongoDB PHP Library EUVDEUVD-2026-75637

| CVE-2026-88023 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
6.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to target PHP application
  2. Delivery
    Supply structured query operator as GridFS file identifier
  3. Exploit
    Library interprets identifier as query condition
  4. Execution
    Match unintended GridFS documents in files/chunks collections
  5. Impact
    Exfiltrate content from matched files OR delete all chunk documents in bucket

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Exploitation requires: (1) an authenticated account with at least low-privilege access to the target application (PR:L), (2) the application must pass attacker-influenced input directly to GridFS operations - specifically to a filename, file ID, or other identifier parameter - without coercing it to a scalar type, and (3) the application must use the MongoDB PHP Library's GridFS component (not plain MongoDB collection operations). The AT:P condition limits exploitation to applications with this specific data-flow pattern. What limits exploitation broadly: the majority of MongoDB PHP Library deployments that do not use GridFS are entirely unaffected; applications that validate identifier types (e.g., enforce ObjectId or string scalar) before passing to GridFS are not exploitable; unauthenticated access is not sufficient (PR:L required). The delete-all-chunks impact (VA:H) requires the GridFS operation invoked to be a delete or chunk-modifying call, not merely a read.

Impact

The CVSS 4.0 base score of 6.1 reflects a moderate-severity issue: VI:H and VA:H are the dominant signals, indicating high integrity and availability impacts respectively, while VC:L captures a limited confidentiality leak. The AT:P (Attack Requirements: Present) metric is the key risk qualifier - exploitation is not universally applicable but requires the application to pass attacker-influenced identifiers into GridFS operations. This architectural precondition narrows the real-world attack surface to PHP applications that expose GridFS filename or identifier parameters to user-controlled input. No EPSS score is provided in the input data; risk cannot be quantified probabilistically. No KEV listing and no public POC are identified, placing this in the 'patch but not emergency' tier for most deployments. For applications that do route user input to GridFS identifiers, VA:H is the most operationally severe signal - an attacker could destroy all file chunks in a bucket, which may be irreversible without backups.

Exploit ScenarioDerived

An authenticated user of a PHP web application that stores user-uploaded files via MongoDB GridFS supplies a crafted file identifier containing a MongoDB query operator (e.g., a JSON-structured value with $ne or $regex) instead of a literal filename. The GridFS component interprets this as a query condition, causing a file listing or download operation to return content from files owned by other users, or a delete operation to wipe all chunks in the entire GridFS bucket rather than only the intended target file.

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

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

Alert me

AnalysisAIv1 – Sep 10, 2026

NoSQL injection (CWE-943) in the MongoDB PHP Library's GridFS component allows a low-privileged authenticated user who can influence the file identifier parameter to achieve three distinct impacts: reading file content beyond the intended target, deleting all GridFS file chunks within a bucket (rendering stored files unrecoverable), or renaming an unintended file. The CVSS 4.0 vector (AT:P) confirms exploitation depends on the target application routing attacker-influenced input directly into GridFS operations without sanitization. No public exploit or CISA KEV listing has been identified at time of analysis.

RemediationAI

Upgrade to the patched version of the MongoDB PHP Library once released per PHPLIB-1929 (https://jira.mongodb.org/browse/PHPLIB-1929); an exact fixed release version is not confirmed from available input data. As an immediate compensating control, applications should strictly validate and coerce file identifiers before passing them to GridFS operations: reject any identifier that is not a scalar string, integer, or MongoDB ObjectId - array or object-typed identifiers should be rejected at the application boundary. Additionally, applying the principle of least privilege to the MongoDB user account used by the PHP application limits blast radius; if an account only needs read access to GridFS, it should not hold the deleteFiles or rename privileges. Note that restricting privileges does not prevent the confidentiality leak component of this vulnerability.

Affected VersionsENISA

MongoDB PHP Library 2.0.0 ≤2.4.1
MongoDB PHP Library 1.1.0 ≤1.21.4

Affected Packages

composer mongodb/mongodb fix: 1.21.5, 2.4.2
euvd mongodb_php_library no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

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

Technical ContextAI · show details

MongoDB GridFS is a specification for storing and retrieving files exceeding the BSON 16MB document limit by splitting them into chunks stored across two collections (files and chunks). The MongoDB PHP Library provides PHP-native wrappers around these GridFS operations. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic - NoSQL Injection) arises when caller-supplied data containing MongoDB query operators (e.g., $ne, $gt, $regex, $where) or structured BSON objects is not coerced to a scalar type before being embedded in a query predicate. In this case, a file identifier parameter - expected to be a literal string or ObjectId - is interpreted as a query condition when it is structured as an operator expression, causing the GridFS operation to match unintended documents in the files or chunks collections. The CPE cpe:2.3:a:mongodb:mongodb_php_library:*:*:*:*:*:*:*:* with a wildcard version range indicates all evaluated versions of the library are affected, pending a specific fix boundary from JIRA PHPLIB-1929.

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

Network-accessible via affected app, low complexity once data-flow condition is met, authenticated low-priv user required, no scope change; I:H and A:H reflect rename-wrong-file and delete-all-chunks impacts.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

DescriptionCVE.org

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB PHP Library can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable. The affected rename operation may also rename a stored file other than the intended target.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
popular library but GridFS is a specific optional subsystem
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.3%
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
No
Human Impact· derived
Medium
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

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

Vendor StatusVendor

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