CVE-2026-135147 in PHP Driverinfo

Summary

by MITRE • 11/25/2026

A data-query neutralization weakness in the query builder of the MongoDB integration for a PHP web framework allows values supplied to certain bulk counter-update helpers to be interpreted by the database as query expressions rather than stored as plain text. An application that passes externally supplied data into these helpers may write unintended values into stored documents and may result in unintended disclosure of other data held on the same document. No credentials are required of the party supplying the value.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability described constitutes a critical injection flaw within the MongoDB integration layer of a PHP web framework, specifically affecting its query builder functionality. This issue is categorized under CWE-943 as Improper Neutralization of Special Elements used in a NoSQL Query, often referred to broadly as NoSQL Injection. The core technical failure lies in the application's inability to properly sanitize or type-cast user-supplied input before it is processed by the bulk counter-update helpers. Instead of treating these inputs strictly as literal data values intended for storage within document fields, the underlying database engine interprets them as executable query expressions. This misinterpretation occurs because the framework fails to enforce strict typing or escape special characters that hold semantic meaning in MongoDB's query language, such as operators like $gt, $lt, or logical combinators like $or and $and. Consequently, an attacker can craft malicious payloads that alter the structure of the update operation itself rather than just modifying a field value.

From an operational perspective, this vulnerability allows for severe integrity violations and potential confidentiality breaches without requiring any form of authentication. Since no credentials are needed to supply these values, the attack surface is significantly expanded, potentially exposing the application to unauthenticated remote attackers who can interact with public-facing endpoints that utilize these bulk update mechanisms. The primary impact involves data integrity corruption, where unintended or malicious values are written into stored documents, effectively allowing an attacker to manipulate business logic, financial records, or user profiles by injecting arbitrary MongoDB operators. For instance, an attacker might inject a condition that updates multiple fields simultaneously or modifies the document structure in ways not anticipated by the application developers.

Furthermore, this weakness can lead to unintended disclosure of sensitive information held within the same documents. By manipulating query expressions, an attacker may be able to extract data from other fields on the targeted document or even influence queries against related collections if the integration allows for more complex aggregation pipelines. This aligns with MITRE ATT&CK technique T1059, Command and Scripting Interpreter, as it involves injecting code-like structures into a database query context, although in this specific NoSQL variant, it is often classified under data manipulation techniques such as Data Injection (T1198). The lack of authentication requirements makes this particularly dangerous for applications that rely on session-based or token-based security models, as the injection point may be accessible to any user with basic access to the web application.

Mitigation strategies must focus on strict input validation and type enforcement at the framework level rather than relying solely on database-side protections. Developers should ensure that all values passed into bulk counter-update helpers are explicitly cast to their expected data types, such as integers or strings, before being processed by the query builder. Implementing allowlists for acceptable characters in numeric fields can prevent the injection of special symbols like dollar signs which denote operators in MongoDB queries. Additionally, upgrading to versions of the PHP framework that have patched this specific weakness is essential if available. Security teams should also conduct code reviews focusing on how external data flows into database operations and consider implementing Web Application Firewalls (WAFs) configured with rules specifically designed to detect NoSQL injection patterns as a temporary defensive measure while permanent fixes are deployed.

Responsible

Mongodb

Reservation

11/23/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00585

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!